-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
yarn docs:dev success but yarn docs:build error! #1443
Comments
引入naive-ui第三方组件库后,打包报错 |
JiaZhiheng
changed the title
yarn docs:dev yes but yarn docs:build error!
yarn docs:dev success but yarn docs:build error!
Oct 7, 2022
Duplicate of #1399 |
thank you very much |
请问解决了吗,我现在引入还是会报这个错 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
build error:
file:///Users/development/Documents/GitHub/Blog/docs/.vitepress/.temp/app.js:6
import { NCarousel } from "naive-ui";
^^^^^^^^^
SyntaxError: Named export 'NCarousel' not found. The requested module 'naive-ui' 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 'naive-ui';
const { NCarousel } = pkg;
The text was updated successfully, but these errors were encountered: