This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Breaks on Angular applications #7
Labels
bug
Something isn't working
Comments
I suppose it's a very serious problem. But I cannot run your project:
Can you provide the content of |
@vincentdchan did do |
Please upgrade to v1.5.4 and I have solved it just now. |
I have tested 1.5.4 locally and can verify it works, thanks for such a quick fix! |
Great! Thanks for reporting the bug because the bus of these plugin can break code when they are on production environment, which may cause very serious problem. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi there,
I was trying out this plugin in an Angular app and it seems it breaks some of the imports there.
I'm not sure what's going wrong but tried to prepare the simplest repro possible:
Note: the
npm run ngc
compiles the typescript files in AOT mode for Angular. You only need to run this once really.After serving you can go to http://localhost:8080/ and you should see an error. If you remove the
new WebpackDeepScopeAnalysisPlugin(),
line fromwebpack.config.js
(and restart the server) the error goes away and you should see aHello World
message.The error is:
It seems to be in this line:
When
WebpackDeepScopeAnalysisPlugin
is present, this line is transformed into:Since
i0.ɵcrt()
is transformed intoundefined()
the app fails at runtime.I'm not sure why that transformation happens but if I can help further let me know.
The text was updated successfully, but these errors were encountered: