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.

ng build failed :

See original GitHub issue

I am filing a bug when I execute the command “ng build” since I been updated to version 0.0.27 (no worries in Version 0.0.26)

user@computer c:\dev\project\project_name $ ng build BuildingCannot read property 'push' of undefined TypeError: Cannot read property 'push' of undefined at addPathRecursive (c:\dev\project\project_name\node_modules\angular-cli\lib\broccoli\angular2-app.js:54:23) at c:\dev\project\project_name\node_modules\angular-cli\lib\broccoli\angular2-app.js:58:11 at Array.forEach (native) at addPathRecursive (c:\dev\project\project_name\node_modules\angular-cli\lib\broccoli\angular2-app.js:57:34) at Array.forEach (native) at Angular2App.toTree (c:\dev\project\project_name\node_modules\angular-cli\lib\broccoli\angular2-app.js:51:31) at module.exports (c:\dev\project\project_name\angular-cli-build.js:13:16) at Class.module.exports.Task.extend.setupBroccoliBuilder (c:\dev\project\project_name\node_modules\angular-cli\lib\models\builder.js:57:19) at Class.module.exports.Task.extend.init (c:\dev\project\project_name\node_modules\angular-cli\lib\models\builder.js:91:10) at new Class (c:\dev\project\project_name\node_modules\core-object\core-object.js:18:12)

My development environment :

  • OS. Windows 10
  • Versions. angular-cli: 0.0.27 node: 5.1.0 os: win32 x64 npm: 3.8.3

If you want more information do not hesitate. Thanks

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
Josue87commented, Mar 29, 2016

Hi, if you don’t have Python in your system then try installing it.

2reactions
jkuricommented, Mar 24, 2016

ng init is just like ng new but in existing folder.

“Are we supposed to run this whenever there’s a new version of angular cli?” No, of course not, but we are working on the new (faster) build system and some of the latest versions might have issues.

I will test this later today on Windows and report it under this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NG Build Command is failing - node.js - Stack Overflow
After that you run ng build to build project and see it builed or not. As it's currently written, your answer is unclear....
Read more >
Angular CLI ng build fails - Visual Studio Feedback
I have been trying to get a dotnet core 2.0, Angular CLI 1.5.0 & Angular 5.0.0 application to compile and I just cant....
Read more >
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 ng build fails Invalid version 15.2-15.3 - YouTube
https://github.com/nrwl/nx/issues/8768append below lines to .browserslistrc filenot ios_saf 15.2-15.3not safari 15.2-15.3.
Read more >
ng build fails if AOT is enabled (Angular 11) - DayPilot Forums
ng build fails if AOT is enabled (Angular 11) · Downgrading to Node 12 (from 14) · Running npm install with --legacy-peer-deps ·...
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 Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found