I have multiple apps in the same Angular project. After upgrading from Angular 5 to 6 when I try to run:
ng serve --app myAppOne
I am getting this error:
Unknown option: '--app'
It seems that the --app
options is not supported any more. What is the best way to specify the app to run in Angular 6?
它不再受支持,这些是可能的替代方案:
ng serve --project=myAppOne
ng serve --project myAppOne
ng serve myAppOne
You can search OldAppName and replace with your new app myAppOne first, then run the project with specific port.
ng serve --project=myAppOne --port 4202
if browser is not automatically opened the url then place it manually
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.