kommitters / editorjs-undo

Undo/Redo feature for Editor.js
https://www.npmjs.com/package/editorjs-undo
MIT License
163 stars 50 forks source link

Can't find variable: regeneratorRuntime #238

Closed xkzl closed 8 months ago

xkzl commented 8 months ago

Hello @juanmagiraldor,

I updated to the last version of EditorJS and included editorjs-undo. I randomly get the following error message: (race condition I assume) Any idea how to fix ?

[Error] ReferenceError: Can't find variable: regeneratorRuntime
    (anonymous function) (form-defer.editor.js:6711:7874)
    (anonymous function) (form-defer.editor.js:6711:12653)
    (anonymous function) (form-defer.editor.js:6711:12657)
    (anonymous function) (form-defer.editor.js:6711:12671)
    (anonymous function) (form-defer.editor.js:6711)
    ./node_modules/editorjs-undo/dist/bundle.js (form-defer.editor.js:6711)
    __webpack_require__ (form-defer.editor.js:33499)
    ./assets/styles/js/forms/form-type-editor.js (form-defer.editor.js:229:92)
    __webpack_require__ (form-defer.editor.js:33499)
    (anonymous function) (form-defer.editor.js:33568:114)
    (anonymous function) (form-defer.editor.js:33571)
    Global Code (form-defer.editor.js:33573)
MarioRodriguezS commented 8 months ago

@xkzl Thanks a lot for reporting the issue, it was solved and the solution is available in v2.0.26. Please let us know if this solution proves helpful to you.