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

@ckeditor/ckeditor5-vue2 in Vue 3.x application throws unexpected error #6

Closed
pomek opened this issue Nov 20, 2020 · 0 comments · Fixed by #7
Closed

@ckeditor/ckeditor5-vue2 in Vue 3.x application throws unexpected error #6

pomek opened this issue Nov 20, 2020 · 0 comments · Fixed by #7

Comments

@pomek
Copy link
Member

pomek commented Nov 20, 2020

We agreed that it should throw an error but with a different message.

What I've got:

Uncaught TypeError: Cannot read property 'version' of undefined
    at Module.eval (ckeditor.js?6930:5)
    at n (ckeditor.js?6930:5)
    at eval (ckeditor.js?6930:5)
    at eval (ckeditor.js?6930:5)
    at eval (ckeditor.js?6930:5)
    at eval (ckeditor.js?6930:5)
    at Object../node_modules/@ckeditor/ckeditor5-vue2/dist/ckeditor.js (chunk-vendors.js:21)
    at __webpack_require__ (app.js:849)
    at fn (app.js:151)
    at eval (main.js:12)

What I expected:

throw new Error(
'The CKEditor plugin works only with Vue 2.x. ' +
'For more information, please refer to ' +
'https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/vuejs-v2.html'
);

@psmyrek psmyrek self-assigned this Nov 21, 2020
@pomek pomek closed this as completed in #7 Nov 23, 2020
pomek added a commit that referenced this issue Nov 23, 2020
Fix: When using the `<CKEditor>` component with an unsupported Vue.js library, the component will display an error. Closes #6.
@pomek pomek added this to the iteration 38 milestone Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants