EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 445 forks source link

Problems with NS 7.07 #1666

Open digixweb opened 4 years ago

digixweb commented 4 years ago

√ Getting NativeScript components versions information... √ Component nativescript has 7.0.7 version and is up to date. √ Component @nativescript/core has 7.0.2 version and is up to date. × Component @nativescript/ios is not installed. √ Component @nativescript/android has 7.0.0 version and is up to date.

I get the following error trying to compile "tns build android"

ERROR in ../node_modules/nativescript-plugin-firebase/messaging/messaging.js Module not found: Error: Can't resolve 'tns-core-modules/application/application' in '[deletedpath]\node_modules\nativescript-plugin-firebase\messaging' @ ../node_modules/nativescript-plugin-firebase/messaging/messaging.js 11:18-69 @ ../node_modules/nativescript-plugin-firebase/firebase.js @ ../node_modules/babel-loader/lib!../node_modules/vue-loader/lib??vue-loader-options!./components/Home.vue?vue&type=script&lang=js& @ ./components/Home.vue?vue&type=script&lang=js& @ ./components/Home.vue @ ./app.js Executing webpack failed with exit code 2.

package.json packages: "dependencies": { "@nativescript/core": "7.0.2", "@nativescript/theme": "~2.3.3", "@nativescript/webpack": "3.0.0", "firebase": "^7.20.0", "nativescript-insomnia": "^1.2.3", "nativescript-plugin-firebase": "^10.5.2", "nativescript-status-bar": "^1.2.0", "nativescript-vue": "2.8.0", "nativescript-vue-fonticon": "^1.0.3" }, "devDependencies": { "@babel/core": "~7.1.0", "@babel/preset-env": "~7.1.0", "@nativescript/android": "7.0.0", "babel-loader": "~8.0.0", "nativescript-vue-template-compiler": "2.8.0", "node-sass": "^4.7.1", "vue-loader": "~15.9.0" },

ovaltechnologiesinc commented 4 years ago

Got the same problem and I nothing I have read so far helped.

samarth-math commented 4 years ago

Stuck at the same issue!

nevardreik commented 4 years ago

Try and use @nativescript/firebase as this is the only one that supports the new imports. https://nativescript.org/blog/nativescript-7-compatible-plugins/

ngocnt1 commented 4 years ago

please try to replace "nativescript-plugin-firebase": "^10.5.2" with "@nativescript/firebase": "^11.0.0-rc.6", npm i ns platform clean ios/android

ormedo commented 4 years ago

npm ERR! notarget No matching version found for nativescript-plugin-firebase@^11.0.0-rc.6. npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesn't exist.

ngocnt1 commented 4 years ago

Now it should be "@nativescript/firebase": "^11.0.0", it's no longer RC This is my dependencies: "@angular/animations": "~10.1.0", "@angular/common": "~10.1.0", "@angular/compiler": "~10.1.0", "@angular/core": "~10.1.0", "@angular/forms": "~10.1.0", "@angular/platform-browser": "~10.1.0", "@angular/platform-browser-dynamic": "~10.1.0", "@angular/router": "~10.1.0", "@nativescript/angular": "~10.1.0", "@nativescript/core": "~7.0.3", "@nativescript/fingerprint-auth": "^7.0.0", "@nativescript/firebase": "^11.0.0", "@nativescript/theme": "^2.5.0", "@ngx-translate/core": "^13.0.0", "moment": "^2.27.0", "nativescript-ui-calendar": "^7.0.2", "nativescript-ui-chart": "^8.0.2", "nativescript-ui-dataform": "^7.0.2", "nativescript-ui-sidedrawer": "^9.0.3", "reflect-metadata": "~0.1.12", "rxjs": "^6.6.0", "zone.js": "~0.11.1"