Skip to content

使用Vant Weapp的Dialog 弹出框报错 #15

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

Closed
GXRoger opened this issue Aug 7, 2024 · 2 comments
Closed

使用Vant Weapp的Dialog 弹出框报错 #15

GXRoger opened this issue Aug 7, 2024 · 2 comments

Comments

@GXRoger
Copy link

GXRoger commented Aug 7, 2024

import Dialog from '@vant/weapp/dialog/dialog';
编译报错:Error [RollupError]: Could not resolve entry module "@vant/weapp/dialog/dialog".

改成
import Dialog from '@vant/weapp/dist/dialog';
编译通过,但是微信开发者工具报错:
image

@GXRoger
Copy link
Author

GXRoger commented Aug 7, 2024

解决办法:
import Dialog from '@vant/weapp/lib/dialog/dialog.js';

@GXRoger GXRoger closed this as completed Aug 7, 2024
@yangmingshan yangmingshan reopened this Aug 7, 2024
@yangmingshan yangmingshan transferred this issue from vue-mini/vue-mini Aug 7, 2024
@yangmingshan
Copy link
Member

import Dialog from '@vant/weapp/dialog/dialog';

create-vue-mini v1.2.2 已经支持,不会再报错。

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