Error: Unable to resolve module #firebase/app - firebase

I want to use firebase database in react-native Project but, i have a problem can you help me about it ?
I deleted all node module and package.json and reinstall with yarn but not solved

Related

How to solve dependency error for yarn global add #vue/cli?

Within a mac environment I am trying to upgrade the Vue CLI v4.5.13 to 5.0.8 using yarn as a packet manager
enter image description here
After fetching the packages the terminal result is:
ted (end-of-life October 22nd 2023). This package's functionality is now found in the `#apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details.
[2/4] 🚚 Fetching packages...
error create-strapi-app#3.6.5: The engine "node" is incompatible with this module. Expected version ">=10.16.0 <=14.x.x". Got "16.17.1"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
Reading the documentation at https://classic.yarnpkg.com/en/docs/cli/global does not help.
I expect to update the VUE CLI regardless to project dependencies and I am missing the command that the command
yarn global upgrade #vue/cli
ignores all existent dependencies and simply updates...
yarn add #vue/cli
finished successfully, but that does not help, due the Vue CLI remains to v4.5.13
What does
Fetching packages...
error create-strapi-app#3.6.5: The engine "node" is incompatible with this module. Expected version ">=10.16.0 <=14.x.x". Got "16.17.1"
states?
Node is incompatible to the node module defined in a local strapi project, right?
How should I handle this and why?
Thank you very much, for your kind explanations...
Trying to update Vue CLI to the latest version and hitting dependency blocks on global layer

Flutter : 'firebase' is not recognized as an internal or external command, operable program or batch file

The actual problem is that I cant run this command : firebase deploy --only firestore:indexes
as you can see from this link : https://codelabs.developers.google.com/codelabs/friendlyeats-flutter/#12
im trying to learn firebase with my flutter project ..in general I dont understand the index thing here and i would really appreciate your effort if you do ... I have added a new terminal but still getting this error ...please help me solve this problem .
You need to install Firebase tools first, run in your terminal
npm install -g firebase-tools

error while yarn update in the vue project

while building my vue project it says
â ´ Building for production...Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade`
after that when i am updating my yarn in my project it gives me error.
error An unexpected error occurred: "expected hoisted manifest for \"vue-firestore#firebase##firebase/installations##firebase/installations-types\"".
i have checked that firebase tools are already installed.
Please help.

How to use react-native-firebase

I'm using the react native firebase guide to install firebase in my react native app: https://rnfirebase.io/#2-android-setup
The installation has been successful and firebase is connected to my app.
However when I try to import from the SDK, I'm getting an error that it's not found:
import firebase from 'react-native-firebase'
The error reads:
Undefined Unable to resolve module 'react-native-firebase' from 'App.js'...
As the docs instruct I just used npm install like so:
npm install --save #react-native-firebase/app
And the package is indeed installed. So what could be the reason? Is it not an SDK anymore?
Step 1. Clear watchman watches: watchman watch-del-all
Step 2. Delete the node_modules folder: rm -rf node_modules && npm install
Step 3. Reset packager cache: npm start -- --reset-cache

Firebase Ionic 4 plugin

I get the following error all the time:
Discovered plugin "cordova-plugin-firebase" in config.xml. Adding it to the project
Installing "cordova-plugin-firebase" for ios
Error during processing of action! Attempting to revert...
Failed to install 'cordova-plugin-firebase': CordovaError: Uh oh!
File already exists at destination "/Users/alexcarrascosalvador/Documents/Projects/RACE/race-sos/platforms/ios/RACE SOS/Resources/GoogleService-Info.plist" for resource file specified by plugin cordova-plugin-firebase in iOS platform
at install (/Users/alexcarrascosalvador/Documents/Projects/RACE/race-sos/platforms/ios/cordova/lib/plugman/pluginHandlers.js:64:23)
at ActionStack.process (/Users/alexcarrascosalvador/Documents/Projects/RACE/race-sos/platforms/ios/cordova/node_modules/cordova-common/src/ActionStack.js:56:25)
at PluginManager.doOperation (/Users/alexcarrascosalvador/Documents/Projects/RACE/race-sos/platforms/ios/cordova/node_modules/cordova-common/src/PluginManager.js:114:20)
at PluginManager.addPlugin (/Users/alexcarrascosalvador/Documents/Projects/RACE/race-sos/platforms/ios/cordova/node_modules/cordova-common/src/PluginManager.js:144:17)
at Api.addPlugin (/Users/alexcarrascosalvador/Documents/Projects/RACE/race-sos/platforms/ios/cordova/Api.js:234:10)
at handleInstall (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:594:10)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:357:28
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:854:54)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:883:30
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:13)
Failed to restore plugin "cordova-plugin-firebase" from config.xml. You might need to try adding it again. Error: Uh oh!
File already exists at destination "/Users/alexcarrascosalvador/Documents/Projects/RACE/race-sos/platforms/ios/RACE SOS/Resources/GoogleService-Info.plist" for resource file specified by plugin cordova-plugin-firebase in iOS platform
I found it impossible to fix this error. I put my plugins in order to install Firebase first, but I still get this error when I try to install the plugin in the iOS platform. I also removed the platform and added it again and I still get the error. I deleted the whole project and downloaded again, installed the dependencies and build it, but I still get the cordova-plugin-firebase error...
I had a chance to fix this issue and please follow the below steps.
Rename the file GoogleService-Info.plist in our root folder to GoogleService-Info.plistxx
Remove the file inside your platform/ios/AppName/Resources/GoogleService-Info.plist
Run the command ionic cordova plugin add cordova-plugin-firebase
Rename the file GoogleService-Info.plistxx in our root folder to GoogleService-Info.plist

Resources