Skip to content
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

Duplicate of #1399 #4218

Open
yuanqingqingf opened this issue Sep 20, 2024 · 0 comments
Open

Duplicate of #1399 #4218

yuanqingqingf opened this issue Sep 20, 2024 · 0 comments
Labels

Comments

@yuanqingqingf
Copy link

file:///Users/yuanqingqing/hb_work/hbisdt-design/docs/.vitepress/.temp/app.js?t=1726804378630:11
import { Toolbar } from "@wangeditor/editor-for-vue";
^^^^^^^
SyntaxError: Named export 'Toolbar' not found. The requested module '@wangeditor/editor-for-vue' 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 '@wangeditor/editor-for-vue';
const { Toolbar } = pkg;

at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)

打包报错,运行不报错,这个怎么解决呀
@vuejs vuejs deleted a comment Sep 20, 2024
@github-actions github-actions bot added the stale label Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant