question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't create additional environment. Environment "local" does not exist.

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:6

github_iconTop GitHub Comments

11reactions
be4codecommented, Aug 8, 2017

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

1reaction
pckrishnadas88commented, Jun 13, 2018

Why cli can’t pick it, since the file naming convention is the same?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found