gladly-team / next-firebase-auth

Simple Firebase authentication for all Next.js rendering strategies
https://nfa-example-git-v1x-gladly-team.vercel.app/
MIT License
1.35k stars 290 forks source link

Component auth has not been registered yet #421

Closed DwayneGit closed 2 years ago

DwayneGit commented 2 years ago

Describe the bug I am getting the "Component auth has not been registered yet" when trying to use withUserAuth. right now i am following the example so that is what the code looks like. not sure what else needs to be shown since it seems that the error has something to do with the set up so looking for anyone who may have a clue what the problem may be.

Versions

next-firebase-auth version: canary Firebase JS SDK: 9.6.5 Next.js: 12.0.8

To Reproduce Steps to reproduce the behavior:

  1. create a initAuth file
  2. run initAuth function in _app
  3. export a page with withUserAuth()(PageName)
  4. See error

Expected behavior not get the error

Additional context Add any other context about the problem here.

DwayneGit commented 2 years ago

Looks like it may have been some sore of caching issue