designcourse / angular-auth-demo

A full Angular Firebase Authentication demo based on a coursetro.com tutorial.
101 stars 111 forks source link

Environments #10

Open shalvy opened 6 years ago

shalvy commented 6 years ago

its running to this error

Environment configuration does not contain "environmentSource" entry. A new environmentSource entry replaces the previous source entry inside environments. To migrate angular-cli.json follow the 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" }

C:\Users\User\Desktop\HST\angular-auth-demo-master>ng serve --open Environment configuration does not contain "environmentSource" entry.

A new environmentSource entry replaces the previous source entry inside environments.

To migrate angular-cli.json follow the 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" }

please help solve this

troyb408 commented 6 years ago

What steps to reproduce this issue?

shalvy commented 6 years ago

i had updated the the @angular/cli, anyway i then figured i was supposed to update the file ".angular-cli.json" After:

"environmentSource": "environments/environment.ts", "environments": { "dev": "environments/environment.ts", "prod": "environments/environment.prod.ts" }

and it was solved