Import doesn't work
hotrush opened this issue · 5 comments
hotrush commented
import Editor from 'vue-editor-js';
Vue.use(Editor);
but getting
ERROR Failed to compile with 1 errors
This dependency was not found:
* vue-editor-js in ./resources/js/app.js
To install it, you can run: npm install --save vue-editor-js
Asset Size Chunks Chunk Names
/css/app.css 1.99 MiB /js/app [emitted] /js/app
/js/app.js 2 MiB /js/app [emitted] /js/app
ERROR in ./resources/js/app.js
Module not found: Error: Can't resolve 'vue-editor-js' in '/resources/js'
@ ./resources/js/app.js 7:0-35 11:8-14
@ multi ./resources/js/app.js ./resources/sass/app.scss
gbgelado commented
+1
ChangJoo-Park commented
@hotrush Can you update ^2.0.1 ? I thought every users use local component. I added global registration after 2.0.1.
Please update npm package.
hotrush commented
Thanks
kumold commented
Again, doesn't work, pls add dist version.
meerzulee-auca commented
Try
import Editor from 'vue-editor-js/src/index';
It worked for me.