-
Notifications
You must be signed in to change notification settings - Fork 215
GridModule Angular-Cli (v1.6.4) ng build --prod fails with UglifyJs Error #1229
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
BTW 'ng build --prod' works fine if you remove GridModule from app.module.ts |
It seems like a @angular/cli uglify-es npm package issue. angular/angular-cli#9218 |
I've got mine locked to 3.3.5 and I'm still getting this for the grid component |
I had to delete my node_modules folder and package-lock.json and then npm install again to get the correct dependencies. |
Yay, Thanks all.
ng build --prod then worked. This is probably a Angular-cli / Uglify issue rather than Kendo Grid... but Kendo GridModule was the only module in my package.json that made it surface. |
We have applied a workaround for the error in the package for which it was thrown - telerik/kendo-intl. Updating the package should also resolve the problem. |
@danielkaradachki I see this same error issue using @progress packages. Is there an update for those as well? |
Which packages? The error would be thrown for packages that have dependency to progress/kendo-angular-intl which has dependency to telerik/kendo-intl. |
Never mind. I updated all my packages again and now ng build is working properly. |
I'm submitting a...
Current behavior
If I add the GridModule then do 'ng build --prod' I get.
ERROR in main.xxx.bundle.js from UglifyJs
TypeError: str.replace is not a function
Minimal reproduction of the problem with instructions
You get a build error.
ERROR in main.xxxxxx.bundle.js from UglifyJs
TypeError: str.replace is not a function
Environment
Package versions:
System:
The text was updated successfully, but these errors were encountered: