creativetimofficial / now-ui-react-native

Now UI Pro React Native
MIT License
190 stars 413 forks source link

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

Open Aidon774 opened 4 years ago

Aidon774 commented 4 years ago

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 commented 4 years ago

same issue here!

srushteeM commented 4 years ago

same for me as well

srushteeM commented 4 years ago

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

s-hliao commented 4 years ago

Same problem

rishisingh-dev commented 4 years ago

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 commented 4 years ago

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 commented 3 years ago

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

RaguRam1991 commented 3 years ago

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

hunterperatt commented 3 years ago

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

kashaf12 commented 3 years ago

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

ghost commented 3 years ago

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 commented 3 years ago

npm install works for me

balub commented 3 years ago

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 commented 3 years ago

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

Not sure why this worked but it did for me!

ZeeshanAhmadKhalil commented 3 years ago

what about react-native-cli ?

dhanushkakavinda commented 3 years ago

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 commented 3 years ago

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.