-
Notifications
You must be signed in to change notification settings - Fork 125
Error when starting with less-loader and ExtractTextPlugin #66
Comments
I had similar problems and had to disable happypack for loader chains in release builds where I was using the extract text plugin. Dev builds were fine because they didn't extract. This code assumes you are using the "id" based happy feature ''
|
If you guys can set up a small test repo that reproduces this I can take a look. |
Yes, my case works now. PR Added a new example #69 |
Can we close this then? |
@amireh I have reproduced the bug, with the less there is a problem when we do @import. An example of an error is here - https://github.com/Tom910/happypack /examples/webpack2-extract-react resolve { context: '/assets/styles/conf', resource: '../variables/variables.less' } resolve /assets/styles/conf ../variables/variables.less function (error, result) {
/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:31 Error: Signature changed: context parameter added |
Thank you, will take a look |
This should be functional now on master (in both webpack 1 and 2). Please try it and confirm, it will be available in the next release. FWIW, the support for that API didn't exist until this patch so it's not really a regression. |
Yes it is version works to my project Thanks |
Released in v2.2.0. |
I'm using the settings that are written in @amireh #14 and get an error
TypeError: loaderContext.loadModule is not a function
at /node_modules/less-loader/index.js:117:18
at HappyFakeCompiler.HFCPt._handleResponse (/node_modules/happypack/lib/HappyFakeCompiler.js:58:3)
[email protected], [email protected], [email protected], [email protected]
If I use Webpack 2, I get a completely different problem
/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:30
throw new Error("Signature changed: context parameter added");
^
Error: Signature changed: context parameter added
at Tapable.resolve (/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:30:9)
at Object.HappyRPCHandler.execute (/node_modules/happypack/lib/HappyRPCHandler.js:25:37)
at ChildProcess.acceptMessageFromWorker (/node_modules/happypack/lib/HappyThread.js:49:27)
at emitTwo (events.js:111:20)
at ChildProcess.emit (events.js:191:7)
at process.nextTick (internal/child_process.js:719:12)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
[email protected], [email protected], [email protected], [email protected]/[email protected]
The text was updated successfully, but these errors were encountered: