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

ckEditor5 online build works in development, not in production mode #13093

Closed
Anandhu1991 opened this issue Dec 19, 2022 · 1 comment
Closed
Labels
resolution:duplicate This issue is a duplicate of another issue and was merged into it. type:bug This issue reports a buggy (incorrect) behavior.

Comments

@Anandhu1991
Copy link

Anandhu1991 commented Dec 19, 2022

📝 Provide detailed reproduction steps (if any)

  1. Download final build with required plugins from https://ckeditor.com/ckeditor-5/online-builder/
  2. Extracted build content into a folder name ckeditor5 in root of project
  3. Installed the local package with this command npm add file:./ckeditor5
  4. Used these commands in nextjs to genarate production build npm run build and npm run export

✔️ Expected result

What is the expected result of the above steps?

❌ Actual result

What is the actual result of the above steps?

Getting the follwoing error in production build of next js

849.02b0292964587ed3.js:1 TypeError: this.props.editor.create is not a function
    at ir._createEditor (849.02b0292964587ed3.js:1:27553)
    at Ge._creator (849.02b0292964587ed3.js:1:27214)
    at 849.02b0292964587ed3.js:1:19557
    at async ir._initializeEditor (849.02b0292964587ed3.js:1:27356)
    at async ir.componentDidMount (849.02b0292964587ed3.js:1:26738) 
Object
phase: "initialization"
willEditorRestart: false
[[Prototype]]: Object

console.log of editor module return the following

Module
__esModule: true
Symbol(Symbol.toStringTag): "Module"

But it works perfectly in development mode

❓ Possible solution

If you have ideas, you can list them here. Otherwise, you can delete this section.

📃 Other details

  • Browser: … Google Chrome Version 103.0.5060.134 (Official Build) (64-bit)
  • OS: … Ubuntu 16.04
  • First affected CKEditor version: …
  • Installed CKEditor plugins: …

If you'd like to see this fixed sooner, add a 👍 reaction to this post.

@Anandhu1991 Anandhu1991 added the type:bug This issue reports a buggy (incorrect) behavior. label Dec 19, 2022
@mabryl
Copy link
Contributor

mabryl commented Dec 28, 2022

Hi @Anandhu1991,

Thanks for reaching out. As of right now, we don't provide official support for integrating our editor with Next.js, so some errors might pop up.

You can join this discussion (which is the main thread that we use to track this) to learn more about integrating CKE5 with Next.js, as there are some solutions provided by our community members for issues similar to yours.

@mabryl mabryl closed this as completed Dec 28, 2022
@Reinmar Reinmar added the resolution:duplicate This issue is a duplicate of another issue and was merged into it. label Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution:duplicate This issue is a duplicate of another issue and was merged into it. type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
Development

No branches or pull requests

3 participants