Error: No provider for InjectionToken DocumentToken!
See original GitHub issueHi!
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:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Related StackOverflow Question
Thank you
@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/materialor@angular/cdk.