ChangJoo-Park/vue-editor-js

Import doesn't work

hotrush opened this issue · 5 comments

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

+1

@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.

Thanks

Again, doesn't work, pls add dist version.

Try
import Editor from 'vue-editor-js/src/index';
It worked for me.