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.

NullInjectorError: No provider for IterableDiffers!

See original GitHub issue

I get an error when i try the basic example: Unhandled Promise rejection: StaticInjectorError(AppModule)[NgClass -> IterableDiffers]: StaticInjectorError(Platform: core)[NgClass -> IterableDiffers]: NullInjectorError: No provider for IterableDiffers! ; Zone: angular ; Task: Promise.then ; Value: Error: StaticInjectorError(AppModule)[NgClass -> IterableDiffers]: StaticInjectorError(Platform: core)[NgClass -> IterableDiffers]:

Versions: Angular CLI: 1.7.3 Node: 9.4.0 OS: win32 x64 Angular: 5.2.8 … animations, common, compiler, compiler-cli, core, forms … http, platform-browser, platform-browser-dynamic … platform-server, router

@angular/cdk: 5.2.4
@angular/cli: 1.7.3
@angular/material: 5.2.4
@angular-devkit/build-optimizer: 0.3.2
@angular-devkit/core: 0.3.2
@angular-devkit/schematics: 0.3.2
@ngtools/json-schema: 1.2.0
@ngtools/webpack: 1.10.2
@schematics/angular: 0.3.2
@schematics/package-update: 0.3.2
typescript: 2.6.2
webpack: 3.11.0

am i missing something?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:18 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
ninjaonsafaricommented, Mar 28, 2018

@werthdavid i can confirm that it works with the update Thank you 💯

1reaction
werthdavidcommented, Mar 27, 2018

Have you imported FormsModule?

import {FormsModule} from "@angular/forms";
Read more comments on GitHub >

github_iconTop Results From Across the Web

error:NullInjectorError: No provider for Router - Stack Overflow
Just import RouterTestingModule to your imports array in the TestBed TestBed.configureTestingModule({ imports: [RouterTestingModule] ...
Read more >
IterableDiffers - Angular
Takes an array of IterableDifferFactory and returns a provider used to extend the inherited IterableDiffers instance with the provided factories and return ...
Read more >
NG0201: No provider for {token} found! - Angular | Docs4dev
You see this error when you try to inject a service but have not declared a corresponding provider. A provider is a mapping...
Read more >
IterableDiffers - Angular 10 - W3cubDocs
class IterableDiffers { static create(factories: IterableDifferFactory[], parent? ... Takes an array of IterableDifferFactory and returns a provider used to ...
Read more >
nullinjectorerror: no provider for router! testing
iterableDiffer = iterableDiffers.find([]).create(null); Afterwards, you can just call and work with the dependency you want. No provider for Router Storybook.
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