-
Notifications
You must be signed in to change notification settings - Fork 28
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
Breaks on Angular applications #7
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. |
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: