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 get can not resolved after install any loader, I have to reinstall vue-loader

See original GitHub issue

Version

15.9.4

Reproduction link

http://nothing.com

Steps to reproduce

webpack@ 4.44.0 webpack-cli@4.1.0

vue-loader @15.9.4 “vue-template-compiler”: “^2.6.12”,

What is expected?

run successfully

What is actually happening?

Vue packages version mismatch:

- vue@3.0.3 (/Users/wanghongye/Desktop/HomyeeKing/vue/vue3-ui-design/node_modules/vue/index.js)
- vue-template-compiler@2.6.12 (/Users/wanghongye/Desktop/HomyeeKing/vue/vue3-ui-design/node_modules/vue-template-compiler/package.json)
`Cannot read property 'parseComponent' of undefined`

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
sodateacommented, Nov 3, 2020

Install vue-loader@next & @vue/compiler-sfc, and uninstall vue-template-compiler.

See https://github.com/vuejs/vue-next-webpack-preview for reference.

0reactions
HomyeeKingcommented, Nov 3, 2020

@vue/compiler-sfc

excellent! problem solved

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues with vue-loader - Stack Overflow
I ran into some issues with vue-loader while trying to create a vue project. I started out creating a project with vue init....
Read more >
Working with Webpack | Vue CLI
The library provides an abstraction over the raw webpack config, with the ability to define named loader rules and named plugins, and later...
Read more >
cannot find module 'vue-loader' - You.com | The AI Search ...
Solution 3. I solved it reinstalling the package. First you need to uninstall it. npm uninstall vue-loader-v16. Copy. Once uninstall completes, install it ......
Read more >
vue-loader - npm
vue -loader is not a simple source transform loader. It handles each language blocks inside an SFC with its own dedicated loader chain...
Read more >
Webpack for Vue.js 3 from Scratch
Installing Vue Loader. Of course, it has no idea how to read a .vue file. Luckily we can use vue-loader for this ...
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