-
-
Notifications
You must be signed in to change notification settings - Fork 361
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
Antdv: Error introducing ant-design-vue in vite-ssg run build SyntaxError: Cannot use import statement outside a module #202
Comments
I also encountered this problem. |
|
i find use cjs build is ok,change the dir from 'es' to 'lib'
|
@nabaonan I fix my problem with your suggest, but meet new question
do you still use antdv with vite-ssg? |
1 similar comment
@nabaonan I fix my problem with your suggest, but meet new question
do you still use antdv with vite-ssg? |
Co-authored-by: Kellyton <kellyton@dingtalk.com>
same issue with @yejinjian , did you manage to fix it? |
Steps:
npm add ant-design-vue@next
a-button
in App.vuevite.config.ts
npm run build
Err:
The text was updated successfully, but these errors were encountered: