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
Module build failed: TypeError: this.getResolve is not a function #761
Comments
Figured it out! I didn't have the latest version of everything. I needed webpack 4.40.2 and it fixed it. (I think 4.36.x or later would work). |
I have same problem, how to fix it? |
How to update webpack to the latest version? |
It's happening to me with |
It appears to be related with the usage of When I use this loaders chain the error happens: [
'style-loader',
'thread-loader',
'css-loader',
'sass-loader'
] However, if I remove I've also opened an issue in the |
Posting this in case a search sent someone here with the same issue. Downgrading from sass-loader 8.0.0 to 7.3.1 fixed it for me on new builds with Webpack 4.4.0. |
Works for me, thank you so much @rbfonbuena |
This works for me |
Thanks, works for me too |
How can we change or update the webpack verison? |
style-loader is ok, but MiniCssExtractPlugin.loader has the same error
|
Thank you so much for this!!! |
Still saving lifes! Thank you! |
This also works for me. Thank you! |
thanks for this! |
THIS WORKED FOR ME! npm install webpack@4.40.2 |
Amazing!!!! thanks |
Thank you so much! |
This comment has been minimized.
This comment has been minimized.
Getting below error when Angular version is upgraded. Module build failed (from ./node_modules/@angular-devkit/build-angular/node_modules/sass-loader/dist/cjs.js): Inside cjs.js File "use strict"; const loader = require('./index'); module.exports = loader.default; Tried above solutions and nothing worked so far. Any ideas how to fix it? Thanks! |
Expected Behavior
I expected my SASS to compile
Actual Behavior
How Do We Reproduce?
I have been unable to get this to work at all. There seems to be something fundamentally wrong with these versions, which I presume to be the latest. I can see the call to getResolve inside the source to sass-loader/index.js so I don't know why it wasn't defined
The text was updated successfully, but these errors were encountered: