ckeditor5-react icon indicating copy to clipboard operation
ckeditor5-react copied to clipboard

TypeError: this.props.editor.create is not a function

Open bambier opened this issue 4 years ago • 4 comments

📝 Provide detailed reproduction steps (if any)

Im Using react app after I download my custom build from CKEditor 5 online builder then I follow these steps, I got this err on console

TypeError: this.props.editor.create is not a function
    at Rr._createEditor (bundle.js:5640:34)
    at Pr._creator (bundle.js:5624:176)
    at bundle.js:5363:187 {phase: 'initialization', willEditorRestart: false}

✔️ Expected result

render editor

❌ Actual result

render null or not thing

❓ Possible solution

I think it cant extends custom class in to base class...

📃 Other details

  • Browser: chrome
  • OS: ubuntu
  • First affected CKEditor version: lastest
  • Installed CKEditor plugins: custom build

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

bambier avatar Jan 29 '22 15:01 bambier

+1

kolserdav avatar Oct 17 '22 01:10 kolserdav

I imported ClassicEditor dynamically and had the same problem:

let ClassicEditor: any;
import('../../dynamic/ClassicEditor').then((d) => {
  ClassicEditor = d;
});

The problem was that when importing, I used a non-default value:

let ClassicEditor: any;
import('../../dynamic/ClassicEditor').then((d) => {
  ClassicEditor = d.default; // Adding a default solved the problem
});

kolserdav avatar Oct 17 '22 01:10 kolserdav

@nimaes80 @kolserdav did you find a solution ?

jechazelle avatar Jan 11 '23 20:01 jechazelle

@nimaes80 @kolserdav did you find a solution ?

Yes

The problem was that when importing, I used a non-default value:...

kolserdav avatar Jan 12 '23 04:01 kolserdav

@kolserdav could you share your solution? I have the same problem

winniexueyao avatar Jun 19 '24 04:06 winniexueyao

@winniexueyao it was over here https://github.com/ckeditor/ckeditor5-react/issues/280#issuecomment-1280128790

kolserdav avatar Jun 19 '24 06:06 kolserdav