Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

happypack配合vue-loader使用报错 #1573

Closed
ddmy opened this issue Jul 27, 2019 · 3 comments
Closed

happypack配合vue-loader使用报错 #1573

ddmy opened this issue Jul 27, 2019 · 3 comments

Comments

@ddmy
Copy link

ddmy commented Jul 27, 2019

webpack版本: ^4.16.3
vue-loader: ^15.3.0
happypack: ^5.0.1

webpack.config.js 部分配置信息

const VueLoaderPlugin = require('vue-loader/lib/plugin')
const HappyPack = require('happypack')

loaders.push(
  {
    test: /\.vue$/,
    loader: 'happypack/loader?id=vue'
  }
)

const plugins = [
    new VueLoaderPlugin(),
    new HappyPack({
      id: 'vue',
      loaders: ['vue-loader']
    })
]

config.module.rules = loaders
config.plugins = plugins

module.exports = config

打包报错信息

Error: [VueLoaderPlugin Error] No matching use for vue-loader is found.
Make sure the rule matching .vue files include vue-loader in its use.

我想问一下这是跟vue-loader版本有关系?为什么呢?该如何解决呢?

@vue-bot
Copy link

vue-bot commented Jul 27, 2019

Hello, thank you for taking time filling this issue!

However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).

I hope to see your helper-created issue very soon!


你好,你的 issue 不符合我们所要求的格式,因此已被自动关闭。为了确保每个 issue 都提供必需的相关信息,请务必使用我们的 Issue 向导 来创建新 issue,谢谢!

@vue-bot vue-bot closed this as completed Jul 27, 2019
@AILINGANGEL
Copy link

same issue here, request for help!

@tibic
Copy link

tibic commented Jul 7, 2020

i have same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants