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

vue2 fails to parse require("vue/package.json") in vite5, the path is wrong, does it not support esm and only supports commonjs? Or does it require special converter support? #313

Open
liangyi-h5 opened this issue May 22, 2024 · 0 comments

Comments

@liangyi-h5
Copy link

  • vue2 fails to parse require("vue/package.json") in vite5, the path is wrong, does it not support esm and only supports commonjs? Or does it require special converter support?
  • vue2 在vite5 中解析 require("vue/package.json") 失败,路径不对,是不是不支持 esm 只支持 commonjs?还是需要特殊的转换器支持

image

demo

@liangyi-h5 liangyi-h5 changed the title ue2 fails to parse require("vue/package.json") in vite5, the path is wrong, does it not support esm and only supports commonjs? Or does it require special converter support? vue2 fails to parse require("vue/package.json") in vite5, the path is wrong, does it not support esm and only supports commonjs? Or does it require special converter support? May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant