ckeditor / ckeditor5-react

Official CKEditor 5 React component.
https://ckeditor.com/ckeditor-5
Other
424 stars 99 forks source link

SyntaxError: The requested module '/ckeditor5-41.0.0/build/ckeditor.js?t=1705635647853' does not provide an export named 'default' #443

Open jdavidrsantos opened 9 months ago

jdavidrsantos commented 9 months ago

ckeditor5-41.0.0-95p5bgn58sod

Hello everyone,

I've been following the steps outlined (https://ckeditor.com/docs/ckeditor5/latest/installation/integrations/vuejs-v3.html#integrating-a-build-from-the-online-builder) to integrate CKEditor 5 into my Vue.js 3 project using Vite. Unfortunately, I've encountered persistent issues, even after trying several solutions.

Initially, I selected some premium features and encountered an error. Suspecting the premium features might be the cause, I switched to free plugins, but the problem persisted.

I've diligently followed the suggestions mentioned in (https://github.com/ckeditor/ckeditor5/issues/2178) without success. I've spent the last two days attempting various approaches, but I can't pinpoint what's causing the problem.

Has anyone else faced a similar issue? Your insights would be greatly appreciated. Thank you.

Witoso commented 9 months ago

Hi! The build file may have a Watchdog plugin, if yes, then you need to use named import like:

import { EditorWatchdog, Editor } from 'ckeditor-custom-build';

Could you share the contents of src/ckeditor.ts from the build?