-
Notifications
You must be signed in to change notification settings - Fork 162
Angular 2 notifications runtime error in Angular2-Rc.5 webpack using ng build --prod #60
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
Comments
I've noticed this error will a bunch of packages. I think it's with the new RC5 release. I think removing mangle() from the build process should solve it. |
I'm also experiencing this issue and I can confirm disabling mangle on the Uglify plugin makes it work again. This is the configuration I'm using at the moment: new webpack.optimize.UglifyJsPlugin({
beautify: false,
mangle: false, // Workaround for some modules with issues when mangling
compress: {
screw_ie8: true,
},
comments: false
}), |
See also angular/angular#10618 |
Thanks @zoechi |
@Toolo What file is it? couldn't find this expression anywhere |
@theunreal angular-cli/addon/ng2/models/webpack-build-production.ts |
This bug probably will be resolved in RC6 :-) |
Uh oh!
There was an error while loading. Please reload this page.
The app works when on localhost:4200, but when using
ng build --prod
command to build the application to production mode, I get the following error at the runtime:
Not sure if this error is from this package or from the angular 2 cli/webpack.
The text was updated successfully, but these errors were encountered: