You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i try to run the app not working, the console shown error:
Uncaught TypeError: __WEBPACK_IMPORTED_MODULE_3_firebase_database___default(...) is not a function
at new Home (index.js?8efe:22)
at createComponent (preact.js?10a9:220)
at buildComponentFromVNode (preact.js?10a9:333)
at idiff (preact.js?10a9:136)
at innerDiffNode (preact.js?10a9:178)
at idiff (preact.js?10a9:154)
at diff (preact.js?10a9:111)
at renderComponent (preact.js?10a9:292)
at setComponentProps (preact.js?10a9:252)
at buildComponentFromVNode (preact.js?10a9:338)
The error indicate this line this.firebaseDB = database(); in Home component
The text was updated successfully, but these errors were encountered:
It works for me now!
Change all the follow statements in classes of Home, Input, Message import database from "firebase/database"; -> import fb from "firebase";
Any Call of database() -> fb.database()
e.g. in message class :
When i try to run the app not working, the console shown error:
The error indicate this line
this.firebaseDB = database();
in Home componentThe text was updated successfully, but these errors were encountered: