Skip to content
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

Uncaught TypeError: useValue,useFactory,data is not iterable! Angular 4 cli project error #7337

Closed
FiReBlUe45 opened this issue Aug 10, 2017 · 4 comments
Labels
needs: more info Reporter must clarify the issue

Comments

@FiReBlUe45
Copy link

FiReBlUe45 commented Aug 10, 2017

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.3.0
node: 7.7.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/platform-server: 4.3.3
@angular/router: 4.3.3
@angular/cli: 1.3.0
@angular/compiler-cli: 4.3.3
@angular/language-service: 4.3.3

Repro steps.

I am new to Angular 4 , I have just created a project by Angular Cli and I get error as

Uncaught TypeError: useValue,useFactory,data is not iterable!

I an unable to resolve it. I installed and reinstalled cli , I just want to know how can I resolve it. All I did was

ng new myprj 
 mkdir myprj 
 ng serve

The log given by the failure.

image

thank you

@filipesilva
Copy link
Contributor

You seem to be using Chrome, correct? Can you try opening the page in an incognito tab? One of your extensions might be doing funny stuff.

@filipesilva filipesilva self-assigned this Aug 24, 2017
@filipesilva filipesilva added the needs: more info Reporter must clarify the issue label Aug 24, 2017
@FrancescoBorzi
Copy link

FrancescoBorzi commented Sep 25, 2017

It happens to me when I use PhantomJS instead of Chrome to run the tests.

This solved this issue for me:

https://stackoverflow.com/questions/46405196/angular-cli-how-to-run-tests-without-browser

@alan-agius4
Copy link
Collaborator

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.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: more info Reporter must clarify the issue
Projects
None yet
Development

No branches or pull requests

4 participants