ogix / ng2-fancy-image-uploader

Angular2 async image uploader with preview:
https://ogix.github.io/fancy-image-uploader-demo
MIT License
18 stars 11 forks source link

No Provider for Renderer #17

Open ANewChanceAtLife opened 6 years ago

ANewChanceAtLife commented 6 years ago

I have followed all the instructions from the readme to install this library.

I am running into an issue where, when the image uploader is rendered into the page i get the following error:

ERROR Error: StaticInjectorError(AppModule)[FancyImageUploaderComponent -> Renderer]: 
  StaticInjectorError(Platform: core)[FancyImageUploaderComponent -> Renderer]: 
    NullInjectorError: No provider for Renderer!
    at _NullInjector.webpackJsonp.../../../core/esm5/core.js._NullInjector.get (core.js:1002)
    at resolveToken (core.js:1300)
    at tryResolveToken (core.js:1242)
    at StaticInjector.webpackJsonp.../../../core/esm5/core.js.StaticInjector.get (core.js:1110)
    at resolveToken (core.js:1300)
    at tryResolveToken (core.js:1242)
    at StaticInjector.webpackJsonp.../../../core/esm5/core.js.StaticInjector.get (core.js:1110)
    at resolveNgModuleDep (core.js:10854)
    at NgModuleRef_.webpackJsonp.../../../core/esm5/core.js.NgModuleRef_.get (core.js:12087)
    at resolveDep (core.js:12577)

I don't get any errors when compiling the code and have tried to provide the Renderer manually in my module but to no success.

Any help on this would be appreciated.

ogix commented 6 years ago

Haven't seen this error before. What Android version are you using?