Error #2440
Unanswered
Evilcarbon
asked this question in
Q&A
Error
#2440
Replies: 1 comment 6 replies
-
If you don't want to use bundler, load Editor.js from CDN instead of |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Am having problem to get editor.js working. I installed the library via npm: npm i @editorjs/editorjs --save and this is my html element
<script src="./../index.js"></script>and this is my index.js
import EditorJs from '@editorjs/editorjs';
const editor = new EditorJs({
})
Am suppose to get the text editor but now am getting this error
index.js:1 Uncaught SyntaxError: Cannot use import statement outside a module (at index.js:1:1)
and when I add
<script type="module" src="./../index.js"></script>I get this error
Uncaught TypeError: Failed to resolve module specifier "@editorjs/editorjs". Relative references must start with either "/", "./", or "../".
Please I need help guys am really confuse hear and don't even know how to touble shoot
Beta Was this translation helpful? Give feedback.
All reactions