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

vite4.3.x uni-app 运行报错 #37

Open
levi-Ma opened this issue Jun 19, 2023 · 2 comments
Open

vite4.3.x uni-app 运行报错 #37

levi-Ma opened this issue Jun 19, 2023 · 2 comments

Comments

@levi-Ma
Copy link

levi-Ma commented Jun 19, 2023

错误信息:[vite]: Rollup failed to resolve import "@uni-helper/uni-env" from "xxx/preset-uni-vue3/node_modules/u-draw/helpers/params.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
build.rollupOptions.external

"devDependencies": {
"u-draw": "^4.0.2",
"vite": "^4.3.9"
}

@yeyaxx
Copy link

yeyaxx commented Feb 2, 2024

@levi-Ma 请问你解决了这个问题了嘛?

@levi-Ma
Copy link
Author

levi-Ma commented Feb 2, 2024

@yeyaxx 回退版本,去npm上找版本号

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

2 participants