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

Created on 17 Dec 2020  ·  1Comment  ·  Source: ckeditor/ckeditor5-react

📝 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

invalid integrations

Most helpful comment

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.

>All comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

amanshu-kataria picture amanshu-kataria  ·  12Comments

pomek picture pomek  ·  7Comments

c1trons picture c1trons  ·  7Comments

abhig02 picture abhig02  ·  9Comments

nsoeth picture nsoeth  ·  12Comments