Closed NativeScriptNewb closed 3 years ago
Facing the same challenge. I read almost every resource I could find to no avail. I understand this challenge began whe nativescript was updated to 7.0.6 and above.
This is a critical component of my app and I have been stuck at if for the last 5 days.
I was able to solve it using "@nativescript/firebase": "^11.0.0-rc.0". import * as firebase from @nativescript/firebase
check this link: https://nativescript.org/blog/nativescript-7-compatible-plugins/
You can now write that import statement in the standard way, i.e.
import { firebase } from "@nativescript/firebase";
Thanks! Importing it from @nativescript/firebase as multiple people suggested fixed it for me. Thanks everyone!
I am in this weird situation..updated my project to ns 7 and updated firebase to @nativescript/firebase.. wherever i use this line import { firebase } from "@nativescript/firebase"; my layout design changes awkardly.
Hi!
I'm having some issues over here with getting this plugin in my project. After installing, placing .plist and .json in their appropriate places, and placing the init command in my app.js, my app won't build. I've tried removing platforms and even building three separate new test apps and I continue to have the same issue.
Steps followed:
Each time I get this error when trying to build my project:
package.json contents: { "name": "@nativescript/template-hello-world", "main": "app.js", "version": "7.0.1", "author": "NativeScript Team oss@nativescript.org", "description": "NativeScript Application", "license": "SEE LICENSE IN",
"publishConfig": {
"access": "public"
},
"keywords": [
"nstudio",
"nativescript",
"mobile",
"{N}",
"tns",
"template"
],
"repository": "",
"bugs": {
"url": "https://github.com/NativeScript/NativeScript/issues"
},
"homepage": "https://github.com/NativeScript/nativescript-app-templates",
"dependencies": {
"@nativescript/core": "~7.0.0",
"@nativescript/theme": "~2.3.0",
"nativescript-plugin-firebase": "^10.5.2"
},
"devDependencies": {
"@nativescript/ios": "7.0.0",
"@nativescript/webpack": "~3.0.0"
},
"gitHead": "3c1e356f5a73a8feb68acc40b3c7c02c9d18d7f0",
"private": "true",
"readme": "NativeScript Application"
}
I initially felt as though I over looked something, as I could have sworn I had this plugin initializing on a simple hello world I toyed around with when first introduced to NS earlier this year, but now I'm wondering if there is something else going on..? I'm hoping it's something simple I've missed! Any help you ya'll can offer would be greatly appreciated!