Open f4irline opened 2 months ago
I have same issue, Did you find any solution @f4irline ?
While we have migrated the editor to ESM, our framework integrations are still UMD bundles that use require()
, which seems to cause this problem. Support for require()
-ing ESM was added in Node 22, but migrating this package to ESM should fix this issue for all supported Node versions.
As we plan to release a new major soon (adding support for React 19), we may use this opportunity to also migrate to ESM.
Hey,
When trying to run tests using Vitest and React Testing Library, I stumble on to the following error:
This is with the latest version of
ckeditor5-react
andckeditor5-build-classic
. This did work withckeditor5-build-classic
version39.0.2
, but with the latest version there seems to be issues.A minimal StackBlitz implementation where the error can be reproduced can be found here - just let StackBlitz install the dependencies and run
npm run test