Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
SKT1yang opened this issue Jul 2, 2024 · 1 comment
Labels
question Further information is requested

Comments

@SKT1yang
Copy link

SKT1yang commented Jul 2, 2024

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

@SKT1yang SKT1yang added the question Further information is requested label Jul 2, 2024
@haoqunjiang
Copy link
Member

Closing as it's been months and no similar reports have been submitted. I suppose it's not a bug in @vue/babel-plugin-jsx.
Please open a new issue with a reference to this one if you can follow up with more information.

@haoqunjiang haoqunjiang closed this as not planned Won't fix, can't repro, duplicate, stale Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants