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

Upgrading @ckeditor/ckeditor5-react from version 2.1 to 3.0 breaks the next.js integration #206

Closed
jorissparla opened this issue Dec 17, 2020 · 1 comment
Labels
resolution:invalid This issue is invalid (e.g. reports a non-existent bug or a by-design behavior). squad:integrations

Comments

@jorissparla
Copy link

📝 Reproduction steps

  1. …clone repo https://github.com/jorissparla/x and install dependencies
  2. …run yarn dev
  3. load localhost:3000 in browser

✔️ Expected result

Page loaded with Editor visible

❌ Actual result

Unhandled runtime error is shown

📃 Other details

  • Browser: All
  • OS: Windows 10

Workaround

Downgrade @ckeditor/ckeditor5-react to 2.1,0 - error does not happen anymore. 3,0 breaks this

@Reinmar Reinmar transferred this issue from ckeditor/ckeditor5 Dec 21, 2020
@pomek
Copy link
Member

pomek commented Feb 8, 2021

As mentioned on the [email protected] page, you need to change the way how the CKEditor component is imported.

It should be:

import { CKEditor } from '@ckeditor/ckeditor5-react';

The package (@ckeditor/ckeditor5-react) exports more than a single component since 3.0.0. That's why we needed to change it.

@pomek pomek closed this as completed Feb 8, 2021
@pomek pomek added the resolution:invalid This issue is invalid (e.g. reports a non-existent bug or a by-design behavior). label Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution:invalid This issue is invalid (e.g. reports a non-existent bug or a by-design behavior). squad:integrations
Projects
None yet
Development

No branches or pull requests

3 participants