Can't find the tsconfig.json file

3,125 views
Skip to first unread message

Peter Wiebe

unread,
Apr 7, 2016, 5:29:49 PM4/7/16
to AngularJS
Recently updated a small project I am working on from using beta.11 to beta.14

Installed angular-cli back when the project was first started (currently have 0.0.30 installed)

When I run ng serve it is giving this error:

ENOENT: no such file or directory, open 'src/client/tsconfig.json'


The tsconfig.json has and always been in the src directory. Not sure why its now looking in the client directory. 


Any help would be greatly appreciated.


Things I have tried:

- Roll back changes to creating of new branch

- Downgraded version of angular2 back to beta.11


None of the above changes made a difference.

Peter Wiebe

unread,
Apr 7, 2016, 7:30:16 PM4/7/16
to AngularJS
Solved it!

In the /*app-name*/node_modules/angular-cli/lib/broccoli/angular2-app.js file replace all instances of "src/client" with "src".

Voila! 

Daco de la Bretonière

unread,
Apr 11, 2016, 5:30:11 AM4/11/16
to AngularJS
I've got the exact same problem, but if I replace all "src/client" with "src" I get

Cannot read property 'push' of undefined
TypeError: Cannot read property 'push' of undefined
    at addPathRecursive (/Users/daco/Projects/funrzr/funrzr/node_modules/angular-cli/lib/broccoli/angular2-app.js:235:21)

But isn't it a strange error in the first place?

Cheers

Daco de la Bretonière

unread,
Apr 11, 2016, 5:33:53 AM4/11/16
to AngularJS
Okay, they apparently moved everything into a client folder:
https://github.com/angular/angular-cli/issues/402#issuecomment-207418306


On Friday, April 8, 2016 at 1:30:16 AM UTC+2, Peter Wiebe wrote:

Peter Wiebe

unread,
Apr 11, 2016, 4:20:13 PM4/11/16
to AngularJS
Yeah, I see that now myself. Thank you for posting the link.
Reply all
Reply to author
Forward
0 new messages