jackow98 / Besterbikes

Year 3 Computing Project
0 stars 1 forks source link

Unhandled Rejection (TypeError): firebase__WEBPACK_IMPORTED_MODULE_2___default.a.auth is not a function #46

Open jackow98 opened 5 years ago

jackow98 commented 5 years ago

Updating firebase caused error. Auth is null

jackow98 commented 5 years ago

https://github.com/firebase/firebase-js-sdk/issues/820

jackow98 commented 5 years ago

Found (my/the) problem!!!

I also tried building an app from scratch, using my existing app as reference. This way it worked fine! But after copying package.json and removing node_modules, my old app still didn't work.

Then i checked the differences in package-lock.json and found A LOT of minor version differences for firebase! So i removed package-lock.json and node_modules (again) en reinstalled. Now everything works fine!