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.

Init is not a function iOS

See original GitHub issue

Hi,

I have a project with pure JS (Vainilla) and updated to Nativescript 7.

I can’t run the lastest version of plugin.

In app.js I have: import { firebase } from '@nativescript/firebase'; And the error is:

firebase.init is not a function.

Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
peppeg85commented, Oct 28, 2020

seems to be solved this way

var firebase = require("@nativescript/firebase").firebase;

please add the info to the documentation!

0reactions
EddyVerbruggencommented, Dec 9, 2020

Feel free to send a PR to the docs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: cli.init is not a function for react native
When I created a new React Native Project my Ios/Anroid folders were not created, which was head scratching because I've done this before...
Read more >
cli.init is not a function · Issue #34055 · facebook/react-native
Description npx react-native init Name throws when creating a template with RN v0.69 ... TypeError: cli.init is not a function #34055.
Read more >
React Native TypeError: cli.init is not a function Error Solution
Solution I found is to downgrade again with the older 0.68.2 version. React Native TypeError: cli.init is not a function 0.69 Version.
Read more >
cli.init is not a function || React native initiation error easy fix
The error:TypeError: cli. init is not a functionat run (/Users/user/.config/yarn/global/node_modules/react-native-cli/index.js:302:7)at ...
Read more >
Typeerror: Cli.init is not a function: 2 Fixes - Candid.Technology
In this article, we're talking about “Typeerror: Cli. init is not a function” error with React Native when making a new project.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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