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
Issues with Less-Loader #10
Comments
@sresant did you ever resolve this? I'm having the same issue. Looks like I can create a simple repo that shows the issue if it would help get it solved. For now, the only workaround I've found is to use |
I can't remember if I was able to resolve this, we ended up just sticking with happy-pack. |
@jgraniero's workaround with using |
same question. |
1 similar comment
same question. |
add path option to the less-loader ,like this: |
but there leads new problem : |
Since less-loader released 6.0.0, thread-loader is now completely incompatible, because |
me too |
同样的错误 |
Please update |
****/node_modules/less-loader/dist/index.js:43
const logger = this.getLogger("less-loader");
^
TypeError: this.getLogger is not a function
at Object.lessLoader (***/node_modules/less-loader/dist/index.js:43:23)
at LOADER_EXECUTION (***/node_modules/loader-runner/lib/LoaderRunner.js:132:14)
at runSyncOrAsync (***/node_modules/loader-runner/lib/LoaderRunner.js:133:4)
at iterateNormalLoaders (***/node_modules/loader-runner/lib/LoaderRunner.js:250:2)
at ***/node_modules/loader-runner/lib/LoaderRunner.js:223:4
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)
***/node_modules/less-loader/dist/index.js:43 webpack config
There seems to be no way to get the webpack context |
same question. |
I'm experiencing the same. This would have been very helpful. Hopefully #130 lands soon |
"less": "^4.1.3", Same question , May we restart this issue ? |
@KyrieLii we need to improve API for this https://github.com/webpack-contrib/thread-loader/blob/master/src/worker.js#L125, do you want to open a new issue or send a PR? |
@alexander-akait Thanks for your reply, I create a new one #185. |
Are there any known issues with less loader and the thread loader?
I am getting the following error:
Module build failed: TypeError: Cannot read property 'bind' of undefined
at createWebpackLessPlugin (/Users/sresan.thevarajah/code/main/node_modules/less-loader/dist/createWebpackLessPlugin.js:37:49)
at getOptions (/Users/sresan.thevarajah/code/main/node_modules/less-loader/dist/getOptions.js:25:26)
at Object.lessLoader (/Users/sresan.thevarajah/code/main/node_modules/less-loader/dist/index.js:32:42)
What is undefined is the loadModule property.
My usage looks like
ExtractTextPlugin.extract({fallback: "style-loader", use: [{loader: "thread-loader" option: { name: "less"}}, "css-loader", "less-loader"]})
I am using two instances of extract text plugin as well.
The text was updated successfully, but these errors were encountered: