ng build fails
See original GitHub issueng build: BuildingENOENT: no such file or directory, open \src\client\tsconfig.json’
Windows 7 node: v4.3.0 npm: 2.14.12 angular-cli: 0.0.30
What i did: npm update the cli was specified in the package.json (“angular-cli”: “0.0.*”) now its specific to 0.0.30, i tried 0.0.29 which give me:
csucsi@csucsi-PC /cygdrive/c/Users/csucsi/Documents/work/slaychat/src ng build
BuildingCannot read property 'map' of undefined
TypeError: Cannot read property 'map' of undefined
at Angular2App.toTree (C:\Users\csucsi\Documents\work\slaychat\node_modules\angular-cli\lib\broccoli\angular2-app.js:64:34)
at module.exports (C:\Users\csucsi\Documents\work\slaychat\angular-cli-build.js:9:14)
at Class.module.exports.Task.extend.setupBroccoliBuilder (C:\Users\csucsi\Documents\work\slaychat\node_modules\angular-cli\node_modules\angular-cli\lib\models\builder.js:55:19)
at Class.module.exports.Task.extend.init (C:\Users\csucsi\Documents\work\slaychat\node_modules\angular-cli\node_modules\angular-cli\lib\models\builder.js:89:10)
at new Class (C:\Users\csucsi\Documents\work\slaychat\node_modules\angular-cli\node_modules\angular-cli\node_modules\core-object\core-object.js:18:12)
at Class.module.exports.Task.extend.run (C:\Users\csucsi\Documents\work\slaychat\node_modules\angular-cli\node_modules\angular-cli\lib\tasks\build.js:15:19)
at C:\Users\csucsi\Documents\work\slaychat\node_modules\angular-cli\node_modules\angular-cli\lib\commands\build.js:28:24
at lib$rsvp$$internal$$tryCatch (C:\Users\csucsi\Documents\work\slaychat\node_modules\angular-cli\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1036:16)
at lib$rsvp$$internal$$invokeCallback (C:\Users\csucsi\Documents\work\slaychat\node_modules\angular-cli\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1048:17)
at lib$rsvp$$internal$$publish (C:\Users\csucsi\Documents\work\slaychat\node_modules\angular-cli\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1019:11)
Full log with version 0.0.30:
csucsi@csucsi-PC /cygdrive/c/Users/csucsi/Documents/work/slaychat/src ng build
BuildingENOENT: no such file or directory, open 'C:\Users\csucsi\Documents\work\slaychat\src\client\tsconfig.json'
Error: ENOENT: no such file or directory, open 'C:\Users\csucsi\Documents\work\slaychat\src\client\tsconfig.json'
at Error (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.readFileSync (fs.js:397:15)
at Angular2App.toTree.Angular2App._getTsTree (C:\Users\csucsi\Documents\work\slaychat\node_modules\angular-cli\lib\broccoli\angular2-app.js:229:32)
at Angular2App.toTree (C:\Users\csucsi\Documents\work\slaychat\node_modules\angular-cli\lib\broccoli\angular2-app.js:37:21)
at module.exports (C:\Users\csucsi\Documents\work\slaychat\angular-cli-build.js:9:14)
at Class.module.exports.Task.extend.setupBroccoliBuilder (C:\Users\csucsi\Documents\work\slaychat\node_modules\angular-cli\node_modules\angular-cli\lib\models\builder.js:55:19)
at Class.module.exports.Task.extend.init (C:\Users\csucsi\Documents\work\slaychat\node_modules\angular-cli\node_modules\angular-cli\lib\models\builder.js:89:10)
at new Class (C:\Users\csucsi\Documents\work\slaychat\node_modules\angular-cli\node_modules\angular-cli\node_modules\core-object\core-object.js:18:12)
at Class.module.exports.Task.extend.run (C:\Users\csucsi\Documents\work\slaychat\node_modules\angular-cli\node_modules\angular-cli\lib\tasks\build.js:15:19)
✘ csucsi@csucsi-PC /cygdrive/c/Users/csucsi/Documents/work/slaychat/src
Toughts:
It’s just can find the tsconfig in a non existing folder, somehow its trying to look it up deeper than it should.
- src
- tsconfig.js
and not
- src
- client
- tsconfig.js
- client
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
NG Build Command is failing - node.js - Stack Overflow
1" to "@angular/common@": "^13.0.0" and then run npm i. After that you run ng build to build project and see it builed or...
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 >ng build fails after updating Angular Core to 12.0.4 #21101
I just updated to Angular Core 12.0.4 but did not see an update for the CLI as of yet, but running ng build...
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 is error after using the artifacts - Atlassian Community
Solved: if i ran the "npm build " in the first step. ... Failed at the xdex-ui@0.0.0 build script 'ng build'. npm ERR!...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In angular-cli 0.0.30 there’s a
client
folder betweensrc/
andapp
. So now, when you generate a project, it’ssrc/client/app
notsrc/app
.See https://github.com/angular/angular-cli/commit/a5ddd75f3f11a2a7b267e6c242f983c3594a8765 for more information
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.