question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NullInjectorError: No provider for InjectionToken TimeLocale!

See original GitHub issue

I’m trying your example on my Angular (v9) project and I’m facing this error :

ERROR NullInjectorError: R3InjectorError(AppModule)[InjectionToken TimeLocale -> InjectionToken TimeLocale -> InjectionToken TimeLocale]: 
  NullInjectorError: No provider for InjectionToken TimeLocale!

The code :

                    <div class="24hr-example">
                        <input placeholder="24hr format" aria-label="24hr format" [ngxTimepicker]="fullTime"
                            [format]="24" readonly>
                        <ngx-material-timepicker #fullTime></ngx-material-timepicker>
                    </div>

Am I missing something ?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
Agranomcommented, May 11, 2020

Should be fixed in v5.5.2. Could you check pls?

1reaction
Agranomcommented, May 2, 2020

I have to figure it out

Read more comments on GitHub >

github_iconTop Results From Across the Web

angular - NullInjectorError: No provider for InjectionToken ...
This error is telling you that it is not finding in the app.component.spec.ts file the provider DEFAULT_LOCALE. What you need to do is....
Read more >
Getting "Nullinjectorerror: No Provider For Injectiontoken Okta ...
Issue resolution for error like Angular: NullInjectorError No provider for HttpClient in Angular application. Angular HTTP GET PUT POST and ...
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 >
https://raw.githubusercontent.com/Agranom/ngx-mate...
... fix(ngx-material-timepicker.module): fix NullInjectorError: No provider for InjectionToken TimeLocale for lazy loaded modules, ...
Read more >
No provider for InjectionToken IgxDropDownBaseToken!
NullInjectorError : No provider for InjectionToken IgxDropDownBaseToken! Jean-Paul Saade posted over 1 year ago.
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