Error: No provider for InjectionToken DocumentToken!

See original GitHub issue

Hi!

From version 0.1.0-alpha.4 I’m not able to use the library. In the console the following error is displayed:

Error: No provider for InjectionToken DocumentToken! at injectionError (core.es5.js:1169) at noProviderError (core.es5.js:1207) at ReflectiveInjector_.webpackJsonp.../../../core/@angular/core.es5.js.ReflectiveInjector_._throwOrNull (core.es5.js:2649) at ReflectiveInjector_.webpackJsonp.../../../core/@angular/core.es5.js.ReflectiveInjector_._getByKeyDefault (core.es5.js:2688) at ReflectiveInjector_.webpackJsonp.../../../core/@angular/core.es5.js.ReflectiveInjector_._getByKey (core.es5.js:2620) at ReflectiveInjector_.webpackJsonp.../../../core/@angular/core.es5.js.ReflectiveInjector_.get (core.es5.js:2489) at resolveNgModuleDep (core.es5.js:9473) at _createProviderInstance$1 (core.es5.js:9490) at resolveNgModuleDep (core.es5.js:9469) at _createClass (core.es5.js:9512)

Example plunker is here: http://plnkr.co/edit/aPIU6S887nGhTkDoZZ3Q?p=preview (it’s the same as for issue #2, only the version has changed)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
gauravkfoujdarcommented, Apr 18, 2018

Thank you

0reactions
joejordanbrowncommented, Nov 24, 2017

@AkhayadYassin

Check out this commit, it may help you https://github.com/material-extended/mde/commit/e557e72a64766ad3e9970d1958fec8ddce0d3fa9

Make sure you check out the latest version of my build.js if you are using @angular/material or @angular/cdk.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No provider for InjectionToken DocumentToken - Stack Overflow
I poorly read the GitHub Issue. Apparently when working with local libraries you have to add --preserve-symlinks argument to ng serve .
Read more >
No provider for InjectionToken DocumentToken! when using ...
When importing either BrowserAnimationsModule or NoopAnimationsModule , the app fails with the error: NullInjectorError: R3InjectorError( ...
Read more >
NG0201: No provider for {token} found! - Angular
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 >
NullInjectorError: No provider for InjectionToken ToastConfig!
#angular #angulartutorial #angularproject # error Uncaught (in promise): NullInjectorError: No provider for InjectionToken ToastConfig!
Read more >
No provider for InjectionToken IgxDropDownBaseToken!
ts` constructor but I am still receiving the same error. Should I provide the token in another module? Or inject it in the...
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