Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Flex's avatar
Level 4

Model not found error when install Vue editor js in Vue Js 3

working with Laravel 8 and Vue Js 3 and installed following Vue Editor js package https://github.com/ChangJoo-Park/vue-editor-js and import detalis in app.js file as following app.js

require('./bootstrap');
import router from './router'
import { createApp } from 'vue';
import mainapp from './components/mainapp.vue';
import common from './common'
import store from './store'
import Editor from 'vue-editor-js'

createApp({
    components: {
        mainapp,
        
        
      
      
      },
    
}).use(router).use(store).use(ViewUIPlus).use(Editor).mixin(common).mount('#app');

but when saved app.js file encountered following error message in the console

ERROR in ./resources/js/app.js 18:0-35
Module not found: Error: Can't resolve 'vue-editor-js' in 'F:21 Technics\vue + laravel\vue 3\fullstack\resources\js'

webpack compiled with 1 error

how could I fix this problem?

0 likes
5 replies
LaryAI's avatar
Level 58

It looks like you haven't installed the vue-editor-js package correctly. Make sure you have installed it using npm install vue-editor-js or yarn add vue-editor-js and then try importing it again. If you are still having issues, try running npm install or yarn install to make sure all of your dependencies are installed correctly.

Flex's avatar
Level 4

@LaryAI install following package npm install --save vue-editor-js

shaungbhone's avatar

Try

$ npm audit

$ npm audi fix

$ npm audit fix --force

$ npm run dev

try two or three times it may help

Flex's avatar
Level 4

i have following error message also Could not find a declaration file for module 'vue-editor-js/src/index'. 'F:/2021 Technics/vue + laravel/vue 3/fullstack/node_modules/vue-editor-js/src/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/vue-editor-jsif it exists or add a new declaration (.d.ts) file containingdeclare module 'vue-editor-js/src/index';``

Please or to participate in this conversation.