CleverProgrammers / cp-disney-plus-clone

Here's the DEMO Disney+ Clone App
https://disney-clone-d1e27.web.app
337 stars 261 forks source link

Can't resolve 'firebase' #10

Closed kody435 closed 1 year ago

kody435 commented 2 years ago

Failed to compile.

./src/firebase.js Module not found: Can't resolve 'firebase' in '/CP/youtube-disney-clone/src'

🔴It is showing Module not found although it is present in src folder.🔴

Image:

Screenshot 2022-02-01 at 11 50 16 AM
kody435 commented 2 years ago

Pls help me

advaitkhawase15 commented 2 years ago

install the firebase version 8.4.1 which was used in this clone.

BlackWatch021 commented 2 years ago

Pls help me

If you want to go with the latest version of firebase then use this command to import firebase

  1. import firebase from 'firebase/compat/app';

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';
vaibhavchobisa commented 2 years ago

Pls help me

Did you get a solution to this, I am facing the same problem!

Architsharma7 commented 2 years ago

I can resolve the issue.

9391807200 commented 2 years ago

2022-08-14

9391807200 commented 2 years ago

I am getting this error by using npm install firebase@8.4.1 version

Architsharma7 commented 2 years ago

You can see how to fix this issue, i have made a pull request, see into it.

9391807200 commented 2 years ago

2022-08-14 (1) it is showing simply array not content

9391807200 commented 2 years ago

You can see how to fix this issue, i have made a pull request, see into it.

not available

Architsharma7 commented 2 years ago

https://github.com/CleverProgrammers/cp-disney-plus-clone/pull/15

9391807200 commented 2 years ago

please give clear guidance

9391807200 commented 2 years ago

2022-08-14 (2) it is showing simply array not content

kody435 commented 2 years ago

Bro try to reinstalling npm package

  1. Uninstall NODE_MODULES Folder.

  2. Write in Terminal npm i or npm install