erro on build prod angular 8
See original GitHub issueWhen run angular build prod command i get de following error
`
ERROR in ./node_modules/ngx-currency/fesm5/ngx-currency.js Module build failed (from ./node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js): TypeError: Cannot read property ‘kind’ of undefined ` my dependencies
` “dependencies”: { “@agm/core”: “^1.1.0”, “@angular/animations”: “^8.2.14”, “@angular/cdk”: “^8.2.3”, “@angular/common”: “^8.2.14”, “@angular/compiler”: “^8.2.14”, “@angular/core”: “^8.2.14”, “@angular/forms”: “^8.2.14”, “@angular/platform-browser”: “^8.2.14”, “@angular/platform-browser-dynamic”: “^8.2.14”, “@angular/router”: “^8.2.14”, “@asymmetrik/ngx-leaflet”: “3.0.1”, “@nebular/auth”: “4.3.1”, “@nebular/eva-icons”: “4.3.1”, “@nebular/security”: “4.3.1”, “@nebular/theme”: “4.3.1”, “@swimlane/ngx-charts”: “^10.1.0”, “angular-tree-component”: “7.2.0”, “angular2-chartjs”: “0.4.1”, “angular2-toaster”: “^7.0.0”, “bootstrap”: “4.3.1”, “chart.js”: “2.7.1”, “ckeditor”: “4.7.3”, “classlist.js”: “1.1.20150312”, “core-js”: “2.5.1”, “echarts”: “^4.6.0”, “eva-icons”: “^1.1.2”, “intl”: “1.2.5”, “ionicons”: “2.0.1”, “leaflet”: “1.2.0”, “nebular-icons”: “1.1.0”, “ng2-ckeditor”: “^1.2.6”, “ng2-completer”: “2.0.8”, “ng2-smart-table”: “1.3.5”, “ngx-currency”: “^2.2.1”, “ngx-echarts”: “^4.2.2”, “node-sass”: “^4.13.0”, “normalize.css”: “6.0.0”, “pace-js”: “1.0.2”, “roboto-fontface”: “0.8.0”, “rxjs”: “6.5.4”, “rxjs-compat”: “6.3.0”, “socicon”: “3.0.5”, “tinymce”: “4.5.7”, “tslib”: “^1.10.0”, “typeface-exo”: “0.0.22”, “web-animations-js”: “github:angular/web-animations-js#release_pr208”, “zone.js”: “~0.9.1” },
`
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:13 (1 by maintainers)

Top Related StackOverflow Question
I believe I found the issue at least with my build, I was explicitly telling node to use a specific version of angular-devkit: ~0.800.0. Increasing it to the latest version (or possibly removing the explicit usage and deleting your node_modules folder), running npm install again and rebuilding seems to have fixed the issue:
Instead of: “@angular-devkit/build-angular”: “~0.800.0”,
Use: “@angular-devkit/build-angular”: “0.803.23”,
Me too…