TypeError: collection is not a function #3111
-
I'm getting this error when using firebase adapter. I don't know what I am doing wrong. I have followed this example https://next-auth.js.org/adapters/firebase but I got an error. $ yarn dev
yarn run v1.22.17
$ next dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info - Loaded env from H:\next-auth\.env.local
info - Loaded env from H:\next-auth\.env
event - compiled successfully in 5.9s (209 modules)
wait - compiling /...
event - compiled successfully in 391 ms (224 modules)
wait - compiling /api/auth/[...nextauth] (server only)...
event - compiled successfully in 490 ms (288 modules)
error - TypeError: collection is not a function
wait - compiling /_error...
event - compiled successfully in 351 ms (289 modules)
error - TypeError: collection is not a function
error - TypeError: collection is not a function
error - TypeError: collection is not a function
error - TypeError: collection is not a function |
Beta Was this translation helpful? Give feedback.
Answered by
pictta-mac
Dec 30, 2021
Replies: 1 comment 1 reply
-
I got the same issue tho I have updated the firebase function. Seems that the adapters from https://next-auth.js.org/adapters/firebase needs some updates |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kallyas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I got the same issue tho I have updated the firebase function. Seems that the adapters from https://next-auth.js.org/adapters/firebase needs some updates