bs-config.json missing when Angular 2 project made with angular cli

145 views
Skip to first unread message

lafor...@gmail.com

unread,
May 15, 2017, 1:49:29 AM5/15/17
to Angular and AngularJS discussion
Hi i'm trying to make work an Angular 2 project made with angular cli with latest node js project. The first time i did it with the files in the heroes tutorial so this file bs-config was present and leave me to configure the lite server port. When i use angular cli this file is missing, so what is the substitute file or how to configure it in order to make it compatible with the other approach

Sander Elias

unread,
May 15, 2017, 2:17:15 AM5/15/17
to Angular and AngularJS discussion
Hi ...,

I don't know your old situation. However, you can add an --port <number> to your 'ng serve' command. I suspect that's what you are looking for. When you don't want to do this every time, adapt your package.json, and add it in there.

Regards
Sander 
Reply all
Reply to author
Forward
0 new messages