I’m trying to install Editor.js using node.js package in my hello-express Glitch project. This is the package via NPM:
npm i @editorjs/editorjs --save
import EditorJS from '@editorjs/editorjs'; const editor = new EditorJS();
But the following error appears in the browser console:
Uncaught SyntaxError: Cannot use import statement outside a module
I’m sure it’s a bad installation in my Glitch project but I don’t know how to fix it. Could you help me?