NullInjectorError: No provider for IterableDiffers!
See original GitHub issueI 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:
- Created 5 years ago
- Comments:18 (11 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
@werthdavid i can confirm that it works with the update Thank you 💯
Have you imported FormsModule?