Help us understand the problem. What is going on with this article?

【webpack】vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.

More than 1 year has passed since last update.

vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.

Error | エラー

webpack で vue-loader を使用する際に以下のエラーが出ることがある。

vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.

Solution | 解決方法

webpack.config.js の plugins に VueLoaderPlugin の記述を追加する必要がる。

const { VueLoaderPlugin } = require("vue-loader");

module.exports = {
  plugins: [new VueLoaderPlugin()]
};

Supplement | 補足

vue-loader の使用方法

  1. インストール

    # using npm
    npm install vue-loader --save-dev
    
    # using yarn
    yarn add vue-loader --dev
    
  2. webpack.config.js への記述

    ※ entry, outputなどは適宜記述ください。 

    const { VueLoaderPlugin } = require("vue-loader");
    
    module.exports = {
      module: {
        rules: [
          {
            test: /\.vue$/,
            loader: "vue-loader"
          }
        ]
      },
      plugins: [new VueLoaderPlugin()]
    }
    
7110
PayPayモールにてAMPを活用したフロントエンドの実装とデザインシステムを整備しています⚡️ プライベートではサービスを作ったり、データをいじって分析・加工(Python好き) ⇨ ビジュアライズ(D3, Vue)したり📊
yahoo-japan-corp
Yahoo! JAPAN を運営しています。
https://www.yahoo.co.jp
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした