Giter Site home page Giter Site logo

Comments (14)

shashwatbangar avatar shashwatbangar commented on September 8, 2024 2

Screenshot 2022-02-11 at 11 06 12 PM

Screenshot 2022-02-11 at 11 05 56 PM

I am still getting this error, can somebody help me?
Thanks a lot!

from cp-disney-plus-clone.

shashwatbangar avatar shashwatbangar commented on September 8, 2024 1

yeah I am still getting the error can somebody help me guys?

I resolved it.
Screenshot 2022-02-13 at 12 27 52 AM
Screenshot 2022-02-13 at 12 28 51 AM
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.

akshat072 avatar akshat072 commented on September 8, 2024 1

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
header
firebase
Web capture_20-3-2023_18536_localhost
Web capture_20-3-2023_185216_localhost

from cp-disney-plus-clone.

BlackWatch021 avatar BlackWatch021 commented on September 8, 2024

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...

  1. import 'firebase/compat/auth';
  2. import 'firebase/compat/firestore';
  3. import 'firebase/compat/storage';

from cp-disney-plus-clone.

fasil-code avatar fasil-code commented on September 8, 2024

can u share that firebase file

from cp-disney-plus-clone.

BlackWatch021 avatar BlackWatch021 commented on September 8, 2024

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.

SehajBindra avatar SehajBindra commented on September 8, 2024

yeah I am still getting the error can somebody help me guys?

from cp-disney-plus-clone.

SehajBindra avatar SehajBindra commented on September 8, 2024

from cp-disney-plus-clone.

Maazparker13 avatar Maazparker13 commented on September 8, 2024

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.

FIREBASE SNIPPETS

from cp-disney-plus-clone.

BlackWatch021 avatar BlackWatch021 commented on September 8, 2024

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.

yashwanth938 avatar yashwanth938 commented on September 8, 2024

for me it's working

from cp-disney-plus-clone.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.