Webpack: Error: [vue-loader] vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.
Webpack config uses vue-loader but doesn't add its plugin.
Error: [vue-loader] vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.vue-loader was used without the corresponding plugin[vue-loader] vue-template-compiler must be installed as a peer dependency, or a compatible compiler implementation must be passed via options.Vue packages version mismatch: vue@ vue-template-compiler@ Meaning
Add const { VueLoaderPlugin } = require("vue-loader") and plugins: [new VueLoaderPlugin()]. Check vue-loader and vue versions match (vue-loader 15 for Vue 2, 17 for Vue 3). Vue CLI projects normally have this configured: avoid overriding rules incorrectly.
Common causes
- VueLoaderPlugin missing from webpack config
- vue-loader/vue version mismatch
- Multiple vue-loader copies
- Custom config replacing CLI rules
- Mixed webpack versions
⚡ Quick fix
plugins: [new VueLoaderPlugin()]vue-loader@17with Vue 3,@15with Vue 2npm ls vue-loaderto dedupe
Detailed fix by platform
Linux
npm ls vue vue-loader vue-template-compiler
How to diagnose
- Plugin — Added?
- Versions — Aligned?
- Copies — Duplicates?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- [Vue warn]: <TransitionGroup> children must be keyed Vue: [Vue warn]: <TransitionGroup> children must be keyed: <li>
- [Vue warn]: Component is missing template or render function Vue: [Vue warn]: Component is missing template or render function.
- [Vue warn]: Duplicate keys found during update Vue: [Vue warn]: Duplicate keys found during update: "5", possible duplicate or missing keys
Most viewed in Vue
- Property was accessed during render but is not defined Vue: [Vue warn]: Property "x" was accessed during render but is not defined on instance
- Failed to resolve component Vue: [Vue warn]: Failed to resolve component: x
- Avoid mutating a prop directly Vue: [Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders
Other ways to find it
Where this error sits
Origin: On your device. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 5 Nov 2026