question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

firebase.js:310:18: Error in firebase.init: ReferenceError: Can't find variable: FIRDatabase

See original GitHub issue

Jul 14 00:14:30 Mac ShoutOutPlay[84214]: <FIRAnalytics/INFO> Firebase Analytics v.3201000 started Jul 14 00:14:30 Mac ShoutOutPlay[84214]: <FIRAnalytics/INFO> To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/Y0Yjwu) Jul 14 00:14:30 Mac ShoutOutPlay[84214]: CONSOLE LOG file:///app/tns_modules/nativescript-plugin-firebase/firebase.js:310:18: Error in firebase.init: ReferenceError: Can’t find variable: FIRDatabase

Just added plugin tonight and seeing that error? Using "nativescript-plugin-firebase": "^3.4.1",

Running in iPhone 6 Simulator with:

import firebase = require("nativescript-plugin-firebase");

firebase.init({
      persist: false,
      iOSEmulatorFlush: true
    }).then((instance) => {
      console.log("firebase.init done");
    }, (error) => {
      console.log("firebase.init error: " + error);
    });
firebase.init error: ReferenceError: Can't find variable: FIRDatabase

/cc @jlooper

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
EddyVerbruggencommented, Jul 14, 2016

Hey Nathan, can you open the Podfile in the plugin’s folder and manually add pod 'Firebase/Database' and rebuild to see if that makes a difference? I just changed a few bits to this file in 3.4.1 so that may have caused it.

0reactions
Nikomscommented, Jul 16, 2016

Thx @EddyVerbruggen! You never stop 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReferenceError: Can't find variable: firebase . I can not ...
I am trying to create an App with a Database in which I will add several collections in Cloud Firestore. but ...
Read more >
Firebase CLI reference
You establish a project directory using the firebase init command. A project directory is usually the same directory as your source control root,...
Read more >
ReferenceError: Can't find variable Notification and how to ...
So I connected with USB and opened Safari console from iPhone. And saw this error message. ReferenceError: Can't find variable: Notification. Of course,...
Read more >
ESP32 with Firebase – Creating a Web App
Getting Started with ESP32 with Firebase (Realtime Database). Here are the major steps to complete this tutorial. Creating Firebase Project—we recommend using ...
Read more >
Using Firebase Emulator Suite and React for local-first ...
Inside the root of your react app directory, enable Firestore by running $ firebase init firestore --project $fbid , which will error out ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found