question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

0.3.0 Errors: element editorjs is missing + this.editor.destroy not a function

See original GitHub issue

Hi,

I updated to 0.3.0 and now see the following errors in the console.

Editor.js is not ready because of Error: element with ID «editorjs» is missing. Pass correct holder's ID.

vue-editor-js.esm.js:10759 Uncaught (in promise) Error: element with ID «editorjs» is missing. Pass correct holder's ID.
    at t.<anonymous> (vue-editor-js.esm.js:10759)
    at tryCatch (vue-editor-js.esm.js:142)
    at Generator.invoke [as _invoke] (vue-editor-js.esm.js:361)
    at Generator.prototype.<computed> [as next] (vue-editor-js.esm.js:195)
    at n (vue-editor-js.esm.js:1626)
    at s (vue-editor-js.esm.js:1643)
    at vue-editor-js.esm.js:1650
    at new Promise (<anonymous>)
    at t.<anonymous> (vue-editor-js.esm.js:1639)
    at t.value (vue-editor-js.esm.js:10768)
Error in callback for watcher "initData": "TypeError: this.editor.destroy is not a function"

TypeError: this.editor.destroy is not a function
    at VueComponent.initEditor (app.js:32045)
    at VueComponent.initData (app.js:32137)
    at Watcher.run (app.js:42462)
    at flushSchedulerQueue (app.js:42204)
    at Array.<anonymous> (app.js:39885)
    at flushCallbacks (app.js:39811)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ChangJoo-Parkcommented, May 22, 2019

I will check initData watcher 😦

sorry @greenphp

1reaction
camyacommented, May 22, 2019

It now works fine if I update the data dynamically (via axios). Great work.

Unfortunately, I still receive an error message, if I initially visit the site containing the editor component.

Error in callback for watcher "initData": "TypeError: Cannot read property 'disconnect' of undefined"

vue.esm.js:1897 TypeError: Cannot read property 'disconnect' of undefined
    at e.value (vue-editor-js.esm.js:6358)
    at t.destroy (vue-editor-js.esm.js:10632)
    at VueComponent.initEditor (vue-editor-js.esm.js:12819)
    at VueComponent.initData (vue-editor-js.esm.js:12911)
    at Watcher.run (vue.esm.js:4571)
    at flushSchedulerQueue (vue.esm.js:4313)
    at Array.<anonymous> (vue.esm.js:1989)
    at flushCallbacks (vue.esm.js:1915)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Understand error destroy is not a function - Stack Overflow
It's coming from your useEffect function. There are two problems with it: If you return anything from useEffect , it needs to be...
Read more >
3101543-18-REROLL.patch - Drupal
+ throw new Error("The message type, ".concat(type, ", is not present in Drupal. ... + return element; }, destroy: function destroy() { @@...
Read more >
Elementor Website Builder – WordPress plugin
The Elementor Website Builder has it all: drag and drop page builder, pixel perfect design, mobile responsive editing, and more. Get started now!...
Read more >
Open Source Used In Intersight Mobile App 1.0.210 - Cisco
1.148 repeat-element 1.1.4 ... 1.432 @babel/helper-define-polyfill-provider 0.3.0 ... "error" printers, as it is not meant for formatting/reporting.
Read more >
https://libros.eco/wp-content/plugins/elementor/re...
To edit elements from your Theme, including its Header, Footer, ... the media modal is missing * Fix: Background Overlay is not uploading...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found