You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add ant-design-vue and run scripts npm run dev no error, but error when run npm run build .
import { Button } from "ant-design-vue/es/index.js";
^^^^^^
SyntaxError: Named export'Button' not found. The requested module 'ant-design-vue/es/index.js' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'ant-design-vue/es/index.js';
Describe the bug
I use the
vitesse
template to testvite-ssg
.add
ant-design-vue
and run scriptsnpm run dev
no error, but error when runnpm run build
.Reproduction
https://github.com/bobby169/vitesse
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: