Comments (14)
I am still getting this error, can somebody help me?
Thanks a lot!
from cp-disney-plus-clone.
yeah I am still getting the error can somebody help me guys?
I resolved it.
Actually firebase changed the way to import its methods. If you even stuck in future, simply google "signInWithPopUp (whatever you want) new version"
from cp-disney-plus-clone.
can some one help me with this error?
When I click on login button this error Appears.
.
help me with this by sending the correct code to write
from cp-disney-plus-clone.
Compiled with problems:X
ERROR in ./src/firebase.js 3:0-32
Module not found: Error: Package path . is not exported from package C:\Users\acs\Desktop\disney\node_modules\firebase (see exports field in C:\Users\acs\Desktop\disney\node_modules\firebase\package.json) Did you mean './firebase'? Requests that should resolve in the current directory need to start with './'. Requests that start with a name are treated as module requests and resolve within module directories (node_modules, C:\Users\acs\Desktop\disney\node_modules). If changing the source code is not an option there is also a resolve options called 'preferRelative' which tries to resolve these kind of requests in the current directory too.
Hey, actually the problem is that in the clone older version of firebase is used(which was latest at the time when this clone was made) and you are using the latest version of firebase. In current version the way of importing firebase has been changed.
older
- import firebase from 'firebase'
current
- import 'firebase/compat/auth';
and you are gonna need these import too if you stick with the latest version of firebase...
- import 'firebase/compat/auth';
- import 'firebase/compat/firestore';
- import 'firebase/compat/storage';
from cp-disney-plus-clone.
can u share that firebase file
from cp-disney-plus-clone.
can u share that firebase file
yeah sure, but I am not able to upload the file.......
So do you want me to upload it here in the comment section???
from cp-disney-plus-clone.
yeah I am still getting the error can somebody help me guys?
from cp-disney-plus-clone.
from cp-disney-plus-clone.
Hi,
I Tried by looking into the snaps but still the issue comes. I've been trying to resolve this issue can anyone please help me out.
from cp-disney-plus-clone.
It's been a while. Since I touched it. @Maazparker13 try importing firebase as a named import rather than a default import.
Instead of default import
- import firebase from "firebase/compat/auth"
Try named import
- import { firebase } from 'firebase/compat/auth'
from cp-disney-plus-clone.
for me it's working
from cp-disney-plus-clone.
Related Issues (19)
- Can't resolve 'firebase' HOT 14
- NavMenu is not showing after login
- SignUp button not working
- Firebase permission is denied.
- reduxjs/toolkit: Uncaught TypeError: Cannot read properties of undefined (reading 'name')
- Uncaught TypeError: Cannot read properties of undefined (reading 'getState')
- s
- the video is not playing in Viewers.js HOT 3
- components
- Unable to Login HOT 9
- Live demo link not working HOT 1
- Not working
- not working
- Please provide json file with movie data HOT 3
- GIF HOT 5
- Firebase Data HOT 1
- Firebase Error HOT 2
- [FIX]User can access the "/home" and "/detail/:id" route without logging In
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cp-disney-plus-clone.