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

组件中引入 import { IEditorConfig } from '@wangeditor/editor' 报错 #5818

Open
sx516523 opened this issue Mar 31, 2024 · 1 comment
Open

Comments

@sx516523
Copy link

问题描述

组件中引入 import { IEditorConfig } from '@wangeditor/editor' 报错
请输入遇到的问题...

wangEditor 版本

"@wangeditor/editor": "^5.1.23",
"@wangeditor/editor-for-vue": "^5.1.12",

是否查阅了文档 ?

(文档链接 www.wangeditor.com

最小成本的复现步骤

1、参考官网中,vue3使用说明中的内容,复制里边 vue3 的代码到一个 组件中
https://www.wangeditor.com/v5/for-frame.html#%E4%BD%BF%E7%94%A8-1
2、在 代码中添加 import { IEditorConfig } from '@wangeditor/editor' 命令后,保存,启动项目;
3、浏览器中进入后,控制台上提示:
Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/@wangeditor_editor.js?v=e76dfdb9' does not provide an export named 'IEditorConfig'

@luogao
Copy link

luogao commented Apr 26, 2024

同样遇到这个问题,有什么解决办法吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants