question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`module.loaders` is now `module.rules`

See original GitHub issue

Hi guys,

I keep getting [1] "loaders" is required and [2] "rules" is not allowed in my webpack 2 config. Can I use webpack-validator with latest webpack 2 release ?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:7
  • Comments:5

github_iconTop GitHub Comments

1reaction
kentcdoddscommented, Oct 9, 2016

The changes will need to happen in here (both tests and source). We definitely want to support Webpack 2 and 1 I think. If there’s a way to detect which version the user is using that’d be awesome. It’s likely you’ll have to get a basic understanding of Joi, the validation library we use.

Good luck! And thank you!

0reactions
vpanjganjcommented, Oct 6, 2016

@kentcdodds I love to contribute, but I haven’t worked with your codebase before and don’t know how webpack-validator actually works. If time is not an issue, I will start working on this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module | webpack - JS.ORG
An array of Rules which are matched to requests when modules are created. These rules can modify how the module is created. They...
Read more >
Difference between module.loaders and module.rules in ...
I am looking to use a typescript loader with Babel, I see this: https://github.com/TypeStrong/ts-loader module.exports = { module: { rules: ...
Read more >
Loader Definitions - SurviveJS
A loader definition consists of conditions based on which to match and actions that should be performed when a match happens.
Read more >
doc on custom webpack - module.rules should be used ...
rules instead of module.loaders. Should I update the docs to point this out? Also, would it be nice to add some warnings (or...
Read more >
webpack and the power of loaders - Codesmith
There are currently two competing standards for writing JavaScript modules - CommonJS, which is a syntax used in Node.js on the server-side, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found