question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vue-loader install wrong version

See original GitHub issue

Version

5.0.0-rc.1

Steps to reproduce

I need install the following vue-loader but cause error:

"devDependencies": {
     "vue-loader": "15.9.8",
}

What is expected?

should install vue-loader@15.9.8

What is actually happening?

sometimes install v15.9.8,sometimes install v16.8.3 that the latest version


the version of vue-loader is affected the @vue/cli-service version:

"dependencies": {
     "@vue/vue-loader-v15": "npm:vue-loader@^15.9.7",
     "vue-loader": "^16.8.2", // because this line
}

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
fantasy1114commented, Jun 25, 2022

I want to know your package.json

i uninstall node modules and re-install

“axios”: “^0.21”, “bootstrap”: “^4.6.0”, “jquery”: “^3.6”, “laravel-mix”: “^6.0.6”, “lodash”: “^4.17.19”, “popper.js”: “^1.16.1”, “postcss”: “^8.1.14”, “resolve-url-loader”: “^3.1.2”, “sass”: “^1.32.11”, “sass-loader”: “^11.0.1”, “vue”: “^2.6.12”, “vue-loader”: “^15.9.8”, “vue-template-compiler”: “^2.6.12”

or If there is an error in the code, it will show the same error.

3reactions
yairramirezcommented, Jul 13, 2022

Solved using node v16.16.0, using nvm to switch between node versions was really useful

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I fix a "Vue packages version mismatch" error on ...
This worked for me: Modify package.json : “vue”: “^2.0.8", “vue-template-compiler”: “^2.1.8". Delete node_modules. Run npm install.
Read more >
How to Fix " Vue packages version mismatch:" error in Laravel ...
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 ......
Read more >
vue packages version mismatch - Laracasts
Trying to get vue 3 to work, following directions from: https://laracasts.com/series/whats-new-in-vue-3/episodes/1 I cannot get past npm run dev step...
Read more >
Vue packages version mismatch error fix | by Allan Philip Barku
Make sure to use the same version for both. Specifying the exact version of Vue and Vue-template-compiler rather than leaving it up to...
Read more >
vue-template-compiler - npm
Latest version: 2.7.14, last published: 2 months ago. ... In most cases you should be using it with vue-loader , you will only...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found