creativetimofficial/now-ui-react-native

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

Opened this issue ยท 17 comments

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.

same issue here!

same for me as well

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

Same problem

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

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!

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

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

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

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

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

npm install works for me

balub commented

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.

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!

what about react-native-cli ?

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 '

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.