catamphetamine / universal-webpack

Isomorphic Webpack: both on client and server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow oneOf inside a module rule

joewestcott opened this issue · comments

I'm getting the error:
Neither "loaders" nor "loader" nor "use" are present inside a module rule:
when I have a rule with a oneOf

more info: https://webpack.js.org/configuration/module/#rule-oneof

Does it output the rule?

It gets to here and throws an error:

throw new Error(`Neither "loaders" nor "loader" nor "use" are present inside a module rule: ${util.inspect(rule)}`)

Does it output the rule?

It throws the error before getting to an output.

The output is the error itself.
Post the full error.

It does output the rule along with the error, yes.
The link in my first post contains an example oneOf rule it also failed on.

The fix is going to take some time

Released version 0.6.0.

Hey @catamphetamine, Thankyou for this!