Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Missing "provideAuth(() => getAuth())" in modular and advanced sample? #2996

Unanswered
RafOXxxx asked this question in Q&A
Discussion options

I tried to use the modular sample as a template and run into a NullInjectorError until I added provideAuth(() => getAuth()) to the imports array inside app.module.ts. That made me wonder how the provided samples are functional without it?

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

In the samples provideAuth() is called in the app.browser.module.ts. Most the reasons why I split those out should not be necessary as of Firebase JS SDK 9.1

You must be logged in to vote
1 reply
Comment options

Thanks for the reply, I totally disregarded that app.browser.module.ts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /