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

引入第三方包cdn会出现报错情况 #58

Open
liushuai05 opened this issue Sep 25, 2024 · 0 comments
Open

引入第三方包cdn会出现报错情况 #58

liushuai05 opened this issue Sep 25, 2024 · 0 comments

Comments

@liushuai05
Copy link

liushuai05 commented Sep 25, 2024

比如引入@wangeditor/editor-for-vue包就会出现报错,编译后加载对应的编辑器会报如下错误

TypeError: undefined has no properties
    <anonymous> index.vue:23
[[email protected]:3729:23](https://unpkg.com/[email protected])
Uncaught (in promise) TypeError: undefined has no properties
    <anonymous> index.vue:23
[index.vue:23]

我的配置如下:

 {
            name: '@wangeditor/editor-for-vue',
            var: 'WangEditorEditorForVue',
            path: '5.1.12',
          },

我的引用方法如下

23    import { Editor, Toolbar } from "@wangeditor/editor-for-vue";

2024-09-25_18-16

不知道什么情况,希望大佬们能帮我看看,非常感谢

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

1 participant