Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warn Package firebase has been ignored because it contains invalid configuration. Reason: Cannot find module 'firebase\package.json' #27

Open
Aidon774 opened this issue Apr 11, 2020 · 17 comments

Comments

@Aidon774
Copy link

warn Package firebase has been ignored because it contains invalid configuration. Reason: Cannot find module 'firebase\package.json' Require stack: - E:\Expo\base\node_modules\react-native\node_modules@react-native-community\cli\build\tools\config\resolveNodeModuleDir.js - E:\Expo\base\node_modules\react-native\node_modules@react-native-community\cli\build\tools\releaseChecker\index.js - E:\Expo\base\node_modules\react-native\node_modules@react-native-community\cli\build\commands\server\runServer.js - E:\Expo\base\node_modules\react-native\node_modules@react-native-community\cli\build\commands\server\server.js - E:\Expo\base\node_modules\react-native\node_modules@react-native-community\cli\build\commands\index.js - E:\Expo\base\node_modules\react-native\node_modules@react-native-community\cli\build\index.js - E:\Expo\base\node_modules\react-native\local-cli\cli.js warn Package react-native-reanimated has been ignored because it contains invalid configuration. Reason: Cannot find module 'react-native-reanimated\package.json' Require stack: - E:\Expo\base\node_modules\react-native\node_modules@react-native-community\cli\build\tools\config\resolveNodeModuleDir.js - E:\Expo\base\node_modules\react-native\node_modules@react-native-community\cli\build\tools\releaseChecker\index.js - E:\Expo\base\node_modules\react-native\node_modules@react-native-community\cli\build\commands\server\runServer.js - E:\Expo\base\node_modules\react-native\node_modules@react-native-community\cli\build\commands\server\server.js - E:\Expo\base\node_modules\react-native\node_modules@react-native-community\cli\build\commands\index.js - E:\Expo\base\node_modules\react-native\node_modules@react-native-community\cli\build\index.js - E:\Expo\base\node_modules\react-native\local-cli\cli.js

Kindly help why am getting that error after installing react-navigation, nativebase dependencies.
Before the mentioned dependecies installation expo is not throwing this error while firebase is installed.

@beyond2021
Copy link

same issue here!

@srushteeM
Copy link

same for me as well

@srushteeM
Copy link

warn Package firebase has been ignored because it contains invalid configuration. Reason: Cannot find module 'firebase\package.json'
Require stack:

  • F:\WhiteHat\quiz-buzzer-app\node_modules\react-native\node_modules@react-native-community\cli\build\tools\config\resolveNodeModuleDir.js
  • F:\WhiteHat\quiz-buzzer-app\node_modules\react-native\node_modules@react-native-community\cli\build\tools\releaseChecker\index.js
  • F:\WhiteHat\quiz-buzzer-app\node_modules\react-native\node_modules@react-native-community\cli\build\commands\server\runServer.js
  • F:\WhiteHat\quiz-buzzer-app\node_modules\react-native\node_modules@react-native-community\cli\build\commands\server\server.js
  • F:\WhiteHat\quiz-buzzer-app\node_modules\react-native\node_modules@react-native-community\cli\build\commands\index.js
  • F:\WhiteHat\quiz-buzzer-app\node_modules\react-native\node_modules@react-native-community\cli\build\index.js
  • F:\WhiteHat\quiz-buzzer-app\node_modules\react-native\local-cli\cli.js

@s-hliao
Copy link

s-hliao commented Jul 10, 2020

Same problem

@rishisingh-dev
Copy link

Do npm install and cd ios && pod install.

This happened to me when I installed react-native-fs and fixed by re-installing.

My React Native version - 0.63.0

@nehal-backspace
Copy link

I also got this error after updating expo sdk 38 from expo sdk 37
what I did is :
npm install firebase
in my project directory and it is fixed!

@saaheerpurav
Copy link

I'm having the same problem, none of these options worked for me.

@RaguRam1991
Copy link

hi i upgraded the expo so i got this error and i solved it by;

  • figured out there is no firebase folder inside node modules
  • so i copy the firebase folder from my backup to the current project directory(current node modules)
  • then expo start -c it worked out finally...

@hunterperatt
Copy link

I am having this problem too... haven't gotten it fixed

@kashaf12
Copy link

Try rm -rf package-lock.json node_modules && npm install

@ghost
Copy link

ghost commented Sep 21, 2020

hi i upgraded the expo so i got this error and i solved it by;

  • figured out there is no firebase folder inside node modules
  • so i copy the firebase folder from my backup to the current project directory(current node modules)
  • then expo start -c it worked out finally...

my hero

@AguilarJorge
Copy link

npm install works for me

@balub
Copy link

balub commented Sep 28, 2020

hi i upgraded the expo so i got this error and i solved it by;

  • figured out there is no firebase folder inside node modules
  • so i copy the firebase folder from my backup to the current project directory(current node modules)
  • then expo start -c it worked out finally...

This was exactly what happened to me too.

@Dayton-IX
Copy link

Dayton-IX commented Nov 19, 2020

I had this problem after upgrading from expo sdk 38 to expo sdk 39.
I solved the issue by:

  • deleting node_modules, package-lock.json
  • removing firebase from package.json
  • running expo install firebase, THEN TERMINATE THE INSTALLATION WITH ctrl-C
  • I ran expo install firebase again and it finally downloaded correctly

Not sure why this worked but it did for me!

@ZeeshanAhmadKhalil
Copy link

what about react-native-cli ?

@dhanushkakavinda
Copy link

create new folder "firebase" in node_module folder
then open the @firebase folder in node_module
after that open messaging folder
then copy that package.json file
paste that file in the firebase folder
then run ' expo start -c '

@abdullahmujahidali
Copy link

I resolved it by deleting node_modules folder and then running
npm install to fix this issue at my end. I hope someone finds this helpful, Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests