ngx-timeago
ngx-timeago copied to clipboard
NullInjectorError: No provider for TimeagoIntl! (Angular 13)
Current behavior
Unable to run the application. Compilation goes fine. But in browser we get a blank page with the following error in console,
main.ts:12 NullInjectorError: R3InjectorError(AppModule)[TimeagoIntl -> TimeagoIntl -> TimeagoIntl]:
NullInjectorError: No provider for TimeagoIntl!
at NullInjector.get (core.mjs:11157:1)
at R3Injector.get (core.mjs:11324:1)
at R3Injector.get (core.mjs:11324:1)
at R3Injector.get (core.mjs:11324:1)
at NgModuleRef.get (core.mjs:21888:1)
at Object.get (core.mjs:21565:1)
at lookupTokenUsingModuleInjector (core.mjs:3367:1)
at getOrCreateInjectable (core.mjs:3479:1)
at Module.ɵɵdirectiveInject (core.mjs:14433:1)
at NodeInjectorFactory.AppComponent_Factory [as factory] (app.component.ts:28:26)
Expected behavior
Application should run without any issues
How do you think that we should fix this?
Minimal reproduction of the problem with instructions
npm install ngx-timeago@latest
npm run start
Environment
ngx-timeago version: 2.0.0
Angular version: 13.3.10
Browser:
- [x] Chrome (desktop) version 102.0.5005.61
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
For Tooling issues:
- Node version: v16.13.1
- Platform: Mac
Others:
npm package manager: v8.1.2