This repository has been archived by the owner on Mar 17, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 91
version 2.0.0 breaks ng Angular 8 -> webpack in my project #79
Comments
JoelParke
changed the title
version 2.0.0 breaks webpack in my project
version 2.0.0 breaks ng Angular 8 -> webpack in my project
Jun 5, 2019
Shortly: some of angular loader(s) is not compatibility with latest |
Can be fixed like: function assertArrayOfStrings(identifier, value) {
value = value && value.default ? value.default : value
if (value == null) {
return;
}
if (!Array.isArray(value)) {
throw new Error("Expected '" + identifier + "' to be an array of strings.");
}
for (var i = 0; i < value.length; i += 1) {
if (typeof value[i] !== 'string') {
throw new Error("Expected '" + identifier + "' to be an array of strings.");
}
}
}
|
There is an issue open with |
raw-loader@1.0.0 is better though, simple plug and play solution. |
I'd rather keep a live dependency on the "wrong" loader than a pinned dep on the "right" one, personally. If you stick with 1.0 to avoid this bug then you're going to miss out on updates that could possibly be security-relevant. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Expected Behavior
not to see my web app crash:
Actual Behavior
no errors on web side.
Code
This code that crashes is the straight Angular 8.0, and I suspect Angular 7.0 as well. I saw this earlier and back off from v2.0.0 to v1.0.0 on raw-loader.
So the question is, what could the raw loader do that could be calling without the strings and just a [Module]?
How Do We Reproduce?
Not sure, without my source and project.
Are there log messages that can be turned on in the raw-loader the could spit out what is IN and OUT. Then I could run it under v1.0.0 and then under v 2.0.0. I suspect that seeing the log, would probably determine the difference between 2.0.0 and 1.0.0.
I would be happy to do that and report back. Thanks!
Looking into the failure point in chrome, it fails at : assertArrayOfStrings(), which is being called with args:
identifier = "styles", value = [Module]
The webpack, is straight from ng - Angular 8. I could not attach angular.json on GitHub as a json file, so here it is as a txt file:
angular.txt
The text was updated successfully, but these errors were encountered: