-
-
Notifications
You must be signed in to change notification settings - Fork 426
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
Cannot set property webpackLoaderContext of undefined #955
Comments
Please provide code of your custom importer or steps to reproduce |
Thanks for the quick response, I've uploaded a minimal reporoduction of the issue to this repository It's a minimal Angular v12 repo with @angular-builders/custom-webpack which allows modifying the webpack config in order to add the custom sass importer. I've added a dummy importer because the issue does not seem to be with the implementation of the importer but rather with the way it's invoked, there's a chance the way Angular's SassWorkerImplementation invokes the importer logic using workers is what causes This could be related too: Run |
I see, feel free to send a fix, as you can see it is easy 👍 |
PR created #956 |
Hi! 👋
Firstly, thanks for your work on this project! 🙂
I'm using a custom importer in my project and since the latest update I've been getting the following error:
SassError: Cannot set property 'webpackLoaderContext' of undefined
I've tested it on node
v12.22.1
and14.17.0
Here is the diff that solved my problem:
The text was updated successfully, but these errors were encountered: