All Questions
9,166
questions
0
votes
0
answers
21
views
Getting a Failed to resolve import error even though I am mentioning the correct file path and have exported the variables
I am trying to make a chatting application using React with Vite and Firebase using Google authentication.
I created a firebase.js file to contain the firebase SDK and credentials, when I am importing ...
0
votes
0
answers
16
views
Cloud Build Variables are not getting imported into my React Application
Bare with me as I'm new to a lot of these concepts and my terminology may not be correct.
I have a React application that I have running in a Google App Engine. I've set up a Cloud Build to ...
0
votes
1
answer
16
views
Fetching data from firebase and forwarding it to another component forwards an empty array
I am using an array and useState() to fetch the data from the firebase database. The array is initially empty. However after I recieve the data from the firebase after its initial loading and try to ...
0
votes
0
answers
8
views
React Firebase Multi-factor Authentication RecaptchaVerifier Error
I am currently trying to enable 2FA login for my users in my React App. However, I keep facing an error with RecaptchaVerifier, specifically this error:
Argument of type 'string' is not assignable to ...
1
vote
1
answer
25
views
Bulding with Vite - Fetch (or paths) not working
I have a simple client-side page, made with React using Vite.
The project worked perfectly when running localy (npm run dev), but after running npm run build, a dist folder is created and that's the ...
-2
votes
0
answers
29
views
How can I memoize items that are constantly being updated by the onSnapshot listener? React, firebase [closed]
I am encountering an issue in my Firebase Group Counter app. If I make any CRUD changes in my app, all items that my onSnapshot function listens to are rewritten by this function and displayed in a ...
0
votes
0
answers
33
views
The redirection to the main page after login or registration only works after the second form submission (only on Mobile)
In my Group Counter App, I implemented authorization functionality. Earlier, I had a problem with authorization on PC, and I created a question where I solved my problem. However, now that I have ...
0
votes
1
answer
44
views
Fetch each user data from Firestore failed
I'm trying to fetch each user data from firestore based on the user login, between I'm using React Native and firebase.
Fetch code
const UserInbox = () => {
const auth = getAuth(app)
const ...
1
vote
0
answers
20
views
Getting 404 error when reloading page using Firebase Hosting
I have an react + vite project hosted on Firebase Hosting
Previously after i deployed changes to hosting, i had and error in console:
Failed to load module script: Expected a JavaScript module script ...
1
vote
1
answer
22
views
Firebase: Error (auth/operation-not-allowed) when trying to sign in with phone number in Firebase Web
Below is a simple react phone number authentication in firebase. But it seems to throw an error and only works with the number, which I put in the settings of firebase for testing. I have tried ...
0
votes
1
answer
21
views
component is re-rendering after receiving new data from server
I'm trying update my chats list. I'm receiving an object from server using "onSnapshot" query method of firestore and these object represents users, groups and channels. Then I'm combining ...
-1
votes
2
answers
111
views
None of my react projects deployed on firebase are working [closed]
Whenever I deploy a firebase project and go to the url, it shows me a blank page. Earlier (last year) when I used to deploy they used to work fine. They all run fine locally and even with the build ...
1
vote
0
answers
108
views
Failed to load module script: Expected a JavaScript module script but server responded with MIME type 'text/html' in Vite + React Firebase project
I am encountering an issue with my Vite + React project when deploying to Firebase. The console error I receive is:
Failed to load module script: Expected a JavaScript module script but the server ...
0
votes
1
answer
17
views
"Auth/network-request-failed" on my react js project
I'm working on a learning project using react-router-dom and firebase authentication for user sign-in and sign-up. However, I'm encountering a FirebaseError: "Firebase: Error (auth/network-...
1
vote
1
answer
60
views
firebase deploy gives black page with error Uncaught SyntaxError: Unexpected token '<'
My site neramclasses.com was working fine few days back.
Today, I tried to change some content and did npm run build and deploy to firebase hosting.
My build folder is created good with all the images ...