nshenderov / strapi-plugin-ckeditor

Integrates CKEditor 5 into your Strapi project as a fully customizable custom field. (Unofficial integration)
https://www.npmjs.com/package/@_sh/strapi-plugin-ckeditor
MIT License
84 stars 53 forks source link

Uncaught TypeError: Cannot read properties of undefined (reading 'Markdown') #122

Open thunt4jr opened 8 months ago

thunt4jr commented 8 months ago

Describe the bug main.e5a400d1.js:4737 TypeError: Cannot destructure property 'icon' of 's.get(...)' as it is undefined.

Uncaught TypeError: Cannot read properties of undefined (reading 'Markdown')

To Reproduce Steps to reproduce the behavior:

  1. Go to 'open up event's component and try to add a new event that has custom ckeditor. It will just give me lazy loading and spin non-stop. '
  2. See error

Expected behavior A clear and concise description of what you expected to happen. Everything will go blank or white screen

Screenshots If applicable, add screenshots to help explain your problem.

image

please complete the following information:

Additional context Add any other context about the problem here.

EmilianoTalamo commented 8 months ago

There seems to be an issue with newer strapi versions, where the current method of importing packages within the app file seems to have changed or it's not working.

thunt4jr commented 8 months ago

This has been resolved. The issues was inside the ckeditor.txt.

Not sure how this was added but this was causing the issues.

CKEditor5.markdownGfm.Markdown,

EmilianoTalamo commented 8 months ago

I wouldn't call it solved yet because the import of third party plugins for ckeditor (like the one you're mentioning, markdownGfm) is not working.

That plugin is required to output the custom field as markdown. Someone on your project added it because it's also listed as a dependency on your package.json.

maxdenaro commented 4 months ago

Hi! I get exactly the same error. Please tell me how to solve the problem? I do everything exactly with the documentation