I updated to the newest version of Nuxt.js and now I get this error.
Vue packages version mismatch:
This may cause things to work incorrectly. Make sure to use the same version for both.
Vue packages version mismatch:
This may cause things to work incorrectly. Make sure to use the same version for both.
at Object.
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.
at Module._compile (internal/modules/cjs/loader.js:778:30)
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ โ Nuxt Fatal Error โ
โ โ
โ 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. โ
โ โ
โ โ
It is expected to compile the code.
But instead it crashes with a fatal error.
That's a typical userland error.
There are various solutions: yarn upgrade
/ npm update
/ remove lock files + yarn
or npm i
The thing that works for me is:
I am using Windows and Node 12.14.0
Have the same issue:
Error:
Vue packages version mismatch:
- [email protected]
- [email protected]
But the _package-lock.json_ is loading 2.6.10 for Vue and the Vue Server Renderer
...
"vue": "^2.6.10",
"vue-loader": "^15.7.1",
"vue-router": "^3.1.3",
"vue-server-renderer": "^2.6.10",
"vue-template-compiler": "^2.6.10",
...
So how would this be possible?
The thing that works for me is:
* remove the lock file (package-lock.json) * delete the node_modules folder (this is a mandatory step for me) * run npm i
I am using Windows and Node 12.14.0
This worked for me. thanks
It is not userland error. Npm suggested to me to run npm audit fix
to fix 2 vunerabilities and after that I got the same error. Just followed the above's sugestion and the error is gone.
Npm suggested to me to run npm audit fix to fix 2 vunerabilities and after that I got the same error.
Exactly the same here. A simple npm update
fixed it. (No need to remove lock file or delete node_modules
folder).
I go the save issue after execute npm audit fix
. And it is fixed by running npm update
.
The thing that works for me is:
- remove the lock file (package-lock.json)
- delete the node_modules folder (this is a mandatory step for me)
- run npm i
I am using Windows and Node 12.14.0
This worked for me. Thanks!
Most helpful comment
The thing that works for me is:
I am using Windows and Node 12.14.0