Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
thunt4jr opened this issue Nov 14, 2023 · 4 comments
Closed

Comments

@thunt4jr
Copy link

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:

  • plugins.js (if exist)
  • package.json
  • "dependencies": {
    "@_sh/strapi-plugin-ckeditor": "^2.0.4",
    "@ckeditor/ckeditor5-markdown-gfm": "^40.0.0",
    "@strapi/plugin-i18n": "4.15.2",
    "@strapi/plugin-seo": "^1.9.6",
    "@strapi/plugin-users-permissions": "4.15.2",
    "@strapi/provider-email-amazon-ses": "^4.15.2",
    "@strapi/provider-upload-aws-s3": "^4.15.2",
    "@strapi/strapi": "4.15.2",
    "better-sqlite3": "9.1.1",
    "pg": "^8.11.3",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-router-dom": "^5.3.4",
    "strapi-plugin-import-export-entries": "^1.21.1",
    "strapi-plugin-sitemap": "^3.0.6",
    "styled-components": "^5.3.11"
    },
  • node version
  • 20.9.0

Additional context
Add any other context about the problem here.

@EmilianoTalamo
Copy link

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
Copy link
Author

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
Copy link

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
Copy link

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

@nshenderov nshenderov closed this as not planned Won't fix, can't repro, duplicate, stale Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants