-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
TypeError: Cannot read property 'call' of undefined #9258
Comments
Which steps did you try to find the problem? |
I build the project with "ng build --prod --aot". |
It would be great if you reduce your issue to a small reproducible example. |
The project is what you get with I actually didn't try it as I thought it didn't work, but you can also reproduce the issue when you start the project with : That doesn't give you the console error, but it does show a mangled classname. So it looks like The mangled classname is what I tried to prevent in the first place. But no matter what I tried in the custom webpack config I didn't get that working. |
The same problem occurred yesterday |
@JohanBeumer could you paste your |
That is :
|
I don't think this is related to Webpack. Can you open this issue on https://github.com/angular/angular-cli please? |
We should close this as this does not seem to be a webpack issue as described at angular/angular-cli#14779 (comment) |
Bug report
What is the current behavior?
When using a custom webpack config the classname should not be mangled. Right now I'm getting the console error as shown below.
If the current behavior is a bug, please provide the steps to reproduce.
The problem can be reproduced using this repo. When you build the project with
ng build --prod --aot
and then open the page it shows this error :
What is the expected behavior?
I expect the page to show the name of the class like this :
Classname is Foo
Other relevant information:
webpack version: 4.33.0
Node.js version: 11.12.0
Operating System: Windows 10 pro
Google chrome Version 75.0.3770.80 (Official Build) (64-bit)
The text was updated successfully, but these errors were encountered: