# Webpack: Error: [vue-loader] vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.

**Code:** `vue-loader was used without the corresponding plugin` · **Category:** Vue · **Seen on:** Vue, Node.js

Webpack config uses `vue-loader` but doesn't add its plugin.

## 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

1. `plugins: [new VueLoaderPlugin()]`
2. `vue-loader@17` with Vue 3, `@15` with Vue 2
3. `npm ls vue-loader` to dedupe

## Detailed fix by platform

### Linux

1. `npm ls vue vue-loader vue-template-compiler`

## How to diagnose

1. **Plugin** — Added?
2. **Versions** — Aligned?
3. **Copies** — Duplicates?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/vue/vue-cli-vue-loader-plugin-missing)
