Angular-cli 1.3.1 -


i had created project in angular2 version 2.x.x, had upgraded version 4. after upgrading version 4, angular-cli in verion 1.0.0 allowed me generate components, did not make required changes in app.module.ts. upgraded cli version 1.3.1. after bunch of problems ensued. on doing

ng serve --host 0.0.0.0 --port 8080 --live-reload-port 8081

i got following error:

environment configuration not contain "environmentsource" entry.  new environmentsource entry replaces previous source entry inside environments.  migrate angular-cli.json follow example below:  before:  "environments": {   "source": "environments/environment.ts",   "dev": "environments/environment.ts",   "prod": "environments/environment.prod.ts" }   after:  "environmentsource": "environments/environment.ts", "environments": {   "dev": "environments/environment.ts",   "prod": "environments/environment.prod.ts" } 

on making change, ng serve works not ng serve --host 0.0.0.0 --port 8080 --live-reload-port 8081 , on c9 getting see no application running.

how running? or i'd in fact go version 2.x.x angular-cli 1.0.0.

any appreciated. thanks.

environment configuration not contain "environmentsource" entry.

the new configuration looks different, can generate new project upgraded angular cli , copy new configuration .angular-cli.json

"environmentsource": "environments/environment.ts", //path of environment file       "environments": {         "dev": "environments/environment.ts",         "prod": "environments/environment.prod.ts",         "staging": "environments/environment.staging.ts"  } 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -