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

No loader specified #1121

Closed
abcdGJJ opened this issue Apr 13, 2018 · 4 comments
Closed

No loader specified #1121

abcdGJJ opened this issue Apr 13, 2018 · 4 comments

Comments

@abcdGJJ
Copy link

abcdGJJ commented Apr 13, 2018

Version

3.0.0-beta.6

Reproduction link

https://jsfiddle.net/50wL7mdz/298228/

Steps to reproduce

I run npm run build this command, then console throw a error that

D:\project\vuets\node_modules\_webpack@3.11.0@webpack\lib\RuleSet.js:274 throw new Error("No loader specified");.

I have a config of vue.config.js like this:

module.exports = {
  chainWebpack: (config) => {
    config.module
      .rule('images')
      .use('url-loader')
      .tap(options => ({ ...options, ...{ name: 'img/[name].[ext]', } }))
  }
}

Is anything wrong?

What is expected?

normal build and output files

What is actually happening?

throw a error of No loader specified

@abcdGJJ
Copy link
Author

abcdGJJ commented Apr 13, 2018

I know the answer, I used an error loader in other rule

@abcdGJJ abcdGJJ closed this as completed Apr 13, 2018
@baohouse
Copy link

baohouse commented Jun 7, 2018

I'm getting this error while using less-loader. If I disable the less-loader line in the vue.config.js, it starts building again (although my less files fail). This looks to be a recent change; it was working a few weeks ago.

@xyy547491937
Copy link

I'm also found this error in my project ,who know how to slove it,

@Simple-Young
Copy link

I know you have add loader() this fun after use() just like this:.
use('iview-loader').tap(options =>{ return { prefix:false }}).loader('iview-loader').end()

And this answer will be more people see who is the new-bird

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