question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

erro on build prod angular 8

See original GitHub issue

When 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:open
  • Created 4 years ago
  • Reactions:6
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
SlapBassistcommented, Jan 22, 2020

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”,

5reactions
edupootercommented, Jan 13, 2020

Me too…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Identify and Fix Build and Deployment Errors in Your Angular ...
In this guide, you will learn how to spot some of the most common build and deployment errors and how to resolve them...
Read more >
Angular 8 ng build --prod issue ERROR in TypeError
Question 1) I am trying to make build ...
Read more >
Read your production Angular Errors like a pro - Medium
This is a TypeError thrown from the Angular application which can be seen in the Chrome Developer Tools console tab. Let's analyze it...
Read more >
Deployment - Angular
For the simplest deployment, create a production build and copy the output directory to a web server. Start with the production build: content_copy...
Read more >
Error missing dependence on ng build --prod #15814 - GitHub
Hi @Toso82, the problem is that in your types setting in your tsconfig.app.json https://github.com/Toso82/NgServeErro/blob/ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found