Open ky28059 opened 2 years ago
Also experiencing https://github.com/FirebaseExtended/reactfire/issues/490 and https://github.com/FirebaseExtended/reactfire/issues/491, if that helps.
Interestingly, setting experimental.esmExternals
to false in next.config.js
changes the error to
Version info
React: 18.2.0
Firebase: 9.9.1
ReactFire: 4.2.1
Node: 16.14.2
Steps to reproduce
I'm trying (again) to port a CRA firebase project to nextjs and https://github.com/firebase/firebase-js-sdk/issues/6019 still exists on the latest versions. To summarize, the same
FirebaseProviders
component that initializes and returns SDK providers in CRA break when using them in next. I have tried:firebase
andreactfire
@firebase/app
versions are not mismatchedfirebase
versions are not mismatchedbut running
npm run dev
still gives the same error:Expected behavior
should not throw an error.
Actual behavior
The line throws the following error: