Skip to content

[Question] The vite5 project is running and a Cannot find package error has occurred: @ vue/label plugin jsx/package.json #715

Open
@SKT1yang

Description

node 20/22, vite 5.2.12

The vite5 project is using @ vitejs/plugin vue jsx normally, but suddenly an error message saying @ vue/label plugin jsx cannot be found appears. It is incomprehensible that it must exist under a certain file directory structure, and some file directory structures are normal. Sending it to a friend's computer also works fine. Even more miraculously, I downgraded the node version from 22/20 to 18, and everything returned to normal.

💻 Sample code

Suspected to be a node module parsing issue, not providing type: "module", only the main field, which will cause strange errors in module parsing. We hope to provide the latest ESM configuration for the type and exports fields

🚑 Other information

It is also possible that the alias @/: "src/" was mistakenly used

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions