Closed f1ames closed 2 months ago
Can confirm, fully reproducible on my machine.
@Witoso / @f1ames I checked it using https://github.com/ckeditor/ckeditor5-react/pull/480 branch (yarn link
approach) and it's no longer reproducible. I'd suggest to check if this error actually happens on old installation methods.
@Mati365 I can confirm it work fine with #480 👍🎉
Using
CKEditorContext
errors withnext.js
dev server.Steps
Create
next.js
project (I usednpx create-next-app@latest
and picked TS, ESlint,src/
andAppRouter
).Prepare below files:
Using
app
structure:page.tsx
:@/components/editorWithContext.tsx
:package.json
:Run
npm run dev
.Visit
localhost:3000
.Actual behavior
Editors are not initialized, error in the console:
Expected behavior
It works.
Additional info
It works with
npm run build && npm start
. I also checked with plain React and it worked there too without problems.Maybe it's related to next.js dev server and hot reload?