Can't create additional environment. Environment "local" does not exist.
See original GitHub issueBug 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.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:6
Top Results From Across the Web
Environment could not be found. The environment does not ...
Hi,. Recently we've moved our Release pipeline definitions into multi stage yaml definitions and utilize environments for approval capability.
Read more >command not found while creating new project using angular ...
Run Rapid Environment Editor again and make sure node.js and npm are in your System or User path. Uninstall any existing ng versions...
Read more >Create target environment - Azure Pipelines - Microsoft Learn
Enter information for the environment, and then select Create. Resources can be added to an existing environment later.
Read more >Identify and Fix Build and Deployment Errors in Your Angular ...
This error is seen a lot because it can occur due to a variety of factors. This error occurs most commonly within your...
Read more >Creating environments - Puppet
If a node is assigned to an environment that does not exist — no directory of that name in any of the environment...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
Why cli can’t pick it, since the file naming convention is the same?