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
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)
打包报错,运行不报错,这个怎么解决呀
The text was updated successfully, but these errors were encountered:
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;
The text was updated successfully, but these errors were encountered: