Closed Fiv5 closed 4 years ago
have same questions
Which webpack version supported happypack? I used webpack 3.6.0, the same to above question.
Same here. Any updates on this?
The options
defined inside the module.rules
is overriding the query string (?id=babel
) so happypack's loader is looking for the default plugin instance (named "1"). Can't have both at the same time.
You're already configuring the babel loader properly (inside the happy plugin instance) so just omit the options
from the module.rules
entry.
Relevant snippets:
module: {
rules: [
{
test: /\.js$/,
use: 'happypack/loader?id=babel',
// don't put options here, or put options with { id: 'babel' }
}
]
}
This bug is too serious to use,Most loaders have this error
The
options
defined inside themodule.rules
is overriding the query string (?id=babel
) so happypack's loader is looking for the default plugin instance (named "1"). Can't have both at the same time.You're already configuring the babel loader properly (inside the happy plugin instance) so just omit the
options
from themodule.rules
entry.Relevant snippets:
module: { rules: [ { test: /\.js$/, use: 'happypack/loader?id=babel', // don't put options here, or put options with { id: 'babel' } } ] }
Your offered solution can not fix this problem
Same here. Any updates on this?
How does it not fix the problem? What do you see after amending the options? Please see my response for this similar thread.
We've been using multiple loaders since v1 of this plugin and the tests do cover this use case.
@amireh it helps a lot, i fix it
webpack version : v4.12.0 happypack version : v5.0.0 this is my webpack config :