wysiwyg-editor-node-sdk icon indicating copy to clipboard operation
wysiwyg-editor-node-sdk copied to clipboard

UnhandledPromiseRejectionWarning: ReferenceError: Element is not defined

Open rares-lupascu opened this issue 6 years ago • 0 comments

just updaded and i cannot get the server to start anymore ... did not manage to fix the error below

"froala-editor": "^3.0.0", "wysiwyg-editor-node-sdk": "^3.0.0-beta.1",

var FroalaEditor = require("wysiwyg-editor-node-sdk/lib/froalaEditor.js");

(node:5539) UnhandledPromiseRejectionWarning: ReferenceError: Element is not defined
    at /node_modules/froala-editor/js/froala_editor.min.js:7:414
    at /node_modules/froala-editor/js/froala_editor.min.js:7:84
    at Object.<anonymous> (/node_modules/froala-editor/js/froala_editor.min.js:7:155)
    at Module._compile (internal/modules/cjs/loader.js:774:30)
    at Module._compile (/node_modules/source-map-support/source-map-support.js:521:25)
    at Module._extensions..js (internal/modules/cjs/loader.js:785:10)
    at Object.nodeDevHook [as .js] (/node_modules/ts-node-dev/lib/hook.js:61:7)
    at Module.load (internal/modules/cjs/loader.js:641:32)
    at Function.Module._load (internal/modules/cjs/loader.js:556:12)
    at Module.require (internal/modules/cjs/loader.js:681:19)
(node:5539) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:5539) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

rares-lupascu avatar Jun 21 '19 12:06 rares-lupascu