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
@ngtools/webpack fails in an unclear way because of "unsupported" version of raw-loader #15286
Comments
Duplicate of #15149 |
@alan-agius4 Will #15149 cover all mentioned problems while they are not described there? |
Hi @falsyvalues, I though a bit more about this. With regards to the Adding Probably, what we can do is to try to resolve |
I can't agree that it's optional. It wont work without it, btw
This is valid from one point but invalid from another. While adding dependency in Adding support for higher versions of
|
Hi @falsyvalues, I was referring that |
Hi @alan-agius4, I was doing exactly opposite way, because |
With this change we add support for raw-loader 1, 2 and 3. In version 2 raw-loader released a breaking change https://github.com/webpack-contrib/raw-loader/releases/tag/v2.0.0 and now they use ES Module export instead of CommonJS. Closes #15286 and closes #15149
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
…5311) With this change we add support for raw-loader 1, 2 and 3. In version 2 raw-loader released a breaking change https://github.com/webpack-contrib/raw-loader/releases/tag/v2.0.0 and now they use ES Module export instead of CommonJS. Closes angular#15286 and closes angular#15149
🐞 Bug report
Is this a regression?
No
Description
Building hybrid app without
angular-cli
via@ngtools/webpack
in AoT mode it will fail in really unclear way (see Exception or Error). This is becauseraw-loader
used in this building pipeline line was in3.1.0
version.This will work fine together with
1.0.0
. How we can we know that? We can't because@ngtools/webpack
don't have dependency forraw-loader
listed inpackage.json
. Dependencies are located in@angular-devkit/build-angular
but@ngtools/webpack
doesn't have dependency for it.This is one of few crucial problems that I found during
🔬 Minimal Reproduction
It can be easily reproducible using
angular-cli
:🔥 Exception or Error
After this fix 9478ee9 we get:
🌍 Your Environment
Anything else relevant?
Obviously it fails because of change in
raw-loader
switching from CommonJS to ES Module.At
resource_loader.js
level its easy to fix 🙂The text was updated successfully, but these errors were encountered: