ng build failed :
See original GitHub issueI 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:
- Created 7 years ago
- Reactions:1
- Comments:13 (3 by maintainers)
Hi, if you don’t have Python in your system then try installing it.
ng init
is just likeng 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.