Pavel Prokofiev
Pavel Prokofiev

Reputation: 449

Module build failed: Vue packages version mismatch

I use laravel 5.5, built-in webpack

Module build failed: Error:
Vue packages version mismatch:
- [email protected]
- [email protected]
This may cause things to work incorrectly. Make sure to use the same version for both.
If you are using vue-loader@>=10.0, simply update vue-template-compiler.
If you are using vue-loader@<10.0 or vueify, re-installing vue-loader/vueify should bump vue-template-compiler to the latest.

what's wrong? there is my package.json

{
    "devDependencies": {
        "cross-env": "^5.0.5",
        "laravel-mix": "^1.5.0"
    },
    "dependencies": {
        "axios": "^0.16.2",
        "bootbox": "^4.4.0",
        "bootstrap": "^4.0.0-beta",
        "font-awesome": "^4.7.0",
        "jquery": "^3.2.1",
        "lodash": "^4.17.4",
        "marked": "^0.3.6",
        "normalize.css": "^7.0.0",
        "popper.js": "^1.12.5",
        "vue": "^2.5.2",
        "vue-loader": "^13.3.0",
        "vue-localstorage": "^0.4.2",
        "vue-markdown": "^2.2.4",
        "vue-masked-input": "^0.5.2",
        "vue-simplemde": "^0.4.5",
        "vue-template-compiler": "^2.4.4",
        "vue-upload-component": "^2.6.0-beta.3"
    }
}

even if I change "vue-template-compiler" to 2.5.2 - it not helps

Upvotes: 2

Views: 1528

Answers (5)

Charles G
Charles G

Reputation: 1381

Try to use the same version number:

"vue": "^2.5.2",
"vue-template-compiler": "^2.5.2",

Upvotes: 0

Juanma Garc&#237;a
Juanma Garc&#237;a

Reputation: 11

Only runing npm install the problem was solved. Then, npm run dev and everything was ok.

Upvotes: 0

Cato Minor
Cato Minor

Reputation: 3099

Using Laravel 5.4 / Webpack, I solved this with: 1.) npm install vue-loader 2.) npm install vue-template-compiler

Upvotes: 0

Pavel Prokofiev
Pavel Prokofiev

Reputation: 449

npm update --scripts-prepend-node-path=auto helps

Upvotes: 8

Thamer
Thamer

Reputation: 1954

re-install vue-loader or just delete node_modules folder and run

npm install

Upvotes: 0

Related Questions