Relative Content

Tag Archive for reactjsfirebase

Dependency tree in React 17

PS C:UsersDellOneDriveDocumentsInternshalaCloneclient> npm install firebase
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @testing-library/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! peerOptional react@”^16.9.0 || ^17.0.0 || ^18″ from @reduxjs/[email protected]
npm ERR! node_modules/@reduxjs/toolkit
npm ERR! @reduxjs/toolkit@”^2.2.7″ from the root project
npm ERR! peer react@”17.0.2″ from [email protected]
npm ERR! node_modules/react-dom
npm ERR! peer react-dom@”^16 || ^17″ from [email protected]
npm ERR! node_modules/react-google-login
npm ERR! react-google-login@”^5.2.2″ from the root project
npm ERR! peer react-dom@”>=16.8″ from [email protected]
npm ERR! node_modules/react-router-dom
npm ERR! react-router-dom@”^6.26.0″ from the root project
npm ERR! 1 more (the root project)
npm ERR! 9 more (react-google-login, react-hook-form, react-icons, …)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@”^18.0.0″ from @testing-library/[email protected]
npm ERR! node_modules/@testing-library/react
npm ERR! @testing-library/react@”^13.4.0″ from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react
npm ERR! peer react@”^18.0.0″ from @testing-library/[email protected]
npm ERR! node_modules/@testing-library/react
npm ERR! @testing-library/react@”^13.4.0″ from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with –force or –legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! C:UsersDellAppDataLocalnpm-cache_logs2024-08-02T15_50_04_074Z-eresolve-report.txt

React deployed to Firebase Hosting issue

Not my first time using React + Firebase Hosting, even my portfolio is hosted using Firebase hosting, I have this client project which I attempt to deploy in Firebase and got the white blank issue, which lead to 404 resources issue for the hash js and css. If I tried to add the rewrite rule in my package.json it will end up the unexpected > token issue. The project works as expected in my local machine without any errors in console.

I am getting FirebaseError: Firebase: Error (auth/argument-error)

I’m trying to implement OTP authentication using Firebase in my React 18 application. When a user enters their mobile number, they should receive an OTP. After entering the OTP, they should be asked to provide additional information like email, password, and username.