Can't create additional environment. Environment "local" does not exist.
Bug Report or Feature Request (mark with an x)
- [x ] bug report -> please search issues before submitting
- [ ] feature request
Versions.
@angular/cli: 1.2.7 node: 6.4.0 os: win32 x64 @angular/animations: 4.3.3 @angular/common: 4.3.3 @angular/compiler: 4.3.3 @angular/core: 4.3.3 @angular/forms: 4.3.3 @angular/http: 4.3.3 @angular/platform-browser: 4.3.3 @angular/platform-browser-dynamic: 4.3.3 @angular/router: 4.3.3 @angular/cli: 1.2.7 @angular/compiler-cli: 4.3.3 @angular/language-service: 4.3.3
Repro steps.
create a test app with ng new PROJECT-NAME
create a file environment.local.ts
run ng serve -e=local
The log given by the failure.
Environment "local" does not exist.
You need to provide environment in .angular-cli.json as it is mentioned in wiki: https://github.com/angular/angular-cli/wiki/stories-application-environments
thanks
Have something change? I can't request for another environment that isn't dev or prod. Anything I add results in a not exist.
A image says more than a thousand words, so:

Why cli can't pick it, since the file naming convention is the same?
For anyone here, seems like this has actually change for Angular@6. See: Application Environments
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.