-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Optimized dependency error #1339
Comments
This can be used normally in vite1.0 |
@yyx990803 60a4708 好像只是把报错改成了报警,真正导致错误的原因似乎是 ant-design-vue 引用了 |
怎么解决,更新了 vite2 antd-vue 就报错了 |
@qq31311137 看 antd 的 commit 记录好像解决了,等发版吧 |
@Ttou 看到了 谢谢 |
Hi @anncwb I just ran into this problem too. I fixed it (surprisingly) by adding a leading slash to the file path. e.g. change
Hopefully, it will help you. |
not helping, but thanks all the same~ 🙏 |
Describe the bug
When I added
ant-design-vue
, an error occurred.I tried adding
indexof
torollupInputOptions.external
, but this did not work.At the same time, the project has another error.
When the following two sentences are introduced at the same time, vite will prompt to add
ant-design-vue/dist/antd.css
tooptimizeDeps.include
. But after I added it, an error was reported, and the error message is as followsReproduction
System Info
vite
version:vue
version (fromyarn.lock
orpackage-lock.json
)@vue/compiler-sfc
versionLogs (Optional if provided reproduction)
vite
orvite build
with the--debug
flag.The text was updated successfully, but these errors were encountered: