cipchk / ngx-countdown

Simple, easy and performance countdown for angular
https://cipchk.github.io/ngx-countdown/
MIT License
192 stars 57 forks source link

Bugs when run with --prod #77

Closed reynave closed 3 years ago

reynave commented 4 years ago

Bug Report or Feature Request


[ x ] Bug report 
[ ] Feature request
[ ] Documentation issue or request

Current behavior

just use simple code <countdown [config]="{ leftTime: 100, format: 'm:s' }"></countdown> this bugs happen when I serve with "ng serve --prod", same problem after ng build --prod RROR Error: Uncaught (in promise): NullInjectorError: StaticInjectorError[n -> n]: StaticInjectorError(Platform: core)[n -> n]: NullInjectorError: No provider for n! NullInjectorError: StaticInjectorError[n -> n]: StaticInjectorError(Platform: core)[n -> n]: NullInjectorError: No provider for n!

but everything work well when I run without --prod

Environment


Angular version: 8.2.4
ngx-countdown version: 9.0.1

Browser:
- [ x ] Chrome (desktop) version 84.0.4147.105 (Official Build) (64-bit)
- [ x ] Firefox version latest
- [  ] Safari (desktop) version 
- [ x ] IE version 

cipchk commented 4 years ago

Pls using 8.x

reynave commented 4 years ago

Sorry wrong noted...

I'm use "ngx-countdown": "^9.0.1",