-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ng test Environment "undefined" does not exist. #9057
Comments
This seems like a bug but we'll need to look at a reproduction to find and fix the problem. Can you setup a minimal repro please? You can read here why this is needed. A good way to make a minimal repro is to create a new app via It's very hard to tell what your project looks like from the information you provided... but if I had to bet it has to do with
|
this seems similar to #9058 |
Hi Sam, I get the same issue with my project
I've copied the following files from a newly created (boilerplate) repo where dev is accessible and the error is not happening (filip..all the following files are a new repo):- Still get the error. Filip, if I go any deeper I'm in my components, classes etc.. surely this error would be quite high in the code ? Any help and sanity appreciated |
filip, the bug seems to be something todo with karma and @angular/cli the following block is ignored by karma earlier versions:-
the environment error went away when I upgraded karma to v.1.7.1 npm install [email protected] |
Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular CLI version. If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Upgraded to Angular 5.1.2 today as well as to Angular CLI 1.6.3
When I try and run my tests I get the error:
Environment "undefined" does not exist.
I can get it to work by providing
-e dev
, but didn't have to before.Versions
Repro steps
ng test
Observed behavior
Environment "undefined" does not exist.
If I run with
ng test -e dev
my tests runDesired behavior
Should default to
dev
as it did previously.The text was updated successfully, but these errors were encountered: