-
Notifications
You must be signed in to change notification settings - Fork 26k
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
[beta.2] ngDoCheck is not a function when using minified bundles #6380
Comments
I have a similar error on my ng2-webpack starter: preboot/angular-webpack#7 |
Hey @ocombe thanks for the tip. Lets wait then, thanks 👍 |
Beta.2 still have these issues with minifications, here's the plnkr updated http://plnkr.co/edit/24fjnjNdAvpbfY8a85B2?p=preview . Reproducible in the same way as in the first comment. |
Marked P1 as lots of users are running into this |
It is still present in beta 5. |
Does P1 mean it will be fixed in the next beta? |
@ffMathy It means that it has a very high priority to be fixed. Doesn't guarantee that'll land in next beta release. |
Still, it is a low effort one-hour task wih a P1 tag. I'm hoping for the best. I am stuck on my project until this is complete. |
Still present in beta 6 as well. |
@ffMathy +1 |
@pxwise thanks!. @hongbo-miao @pxwise has given a much better solution. |
Might take a little while to land my PR...
|
@tbosch thanks for taking a look at this. In the meantime this workaround from @gdi2290 (see #6695 (comment)) works perfectly with minification. Copy & pasting
|
For those following this issue, this is already fixed in latest master, here's the plnkr updated with the minified bundle from latest master http://plnkr.co/edit/3Bcdnef5C45tzOPSw5DE?p=preview Can't wait to this to land 😄 👏 |
Ok people, to everyone following it's time to test this. The plnkr using b.16 works perfectly http://plnkr.co/edit/7TdYjVkbbvsy2AoLQcpf?p=preview , but there was a PR to disable mangle for bundles. So we should test in our local envs to see if minification actually works This is my current config for UglifyJS plugin with webpack
Can you guys try if it works for you with minification and without mangle? It works for me :D ! |
I did and it works for me as well. |
Works like a charm! |
Finally it works! |
Tested locally. Great works! @tbosch ! I wonder when we can turn the mangle and keep-fname off? @gdi2290 ? |
This was fixed already, closing. |
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. |
When using minified bundles with SystemJS, and a simple snippet like this
Will throw
This is only reproducible with minified bundles, non-minified work correctly.
As an example check this plnkr (took it from #6304 (comment)). To reproduce switch between minified and unminified bundles.
This is also reproducible with Webpack using this line in the config
Am I missing something?
The text was updated successfully, but these errors were encountered: