Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ionic - Cannot find module '@ionic-native/firebase' #637

Closed
DanielAccorsi opened this issue Apr 11, 2018 · 3 comments
Closed

Ionic - Cannot find module '@ionic-native/firebase' #637

DanielAccorsi opened this issue Apr 11, 2018 · 3 comments

Comments

@DanielAccorsi
Copy link

DanielAccorsi commented Apr 11, 2018

This happens only with this native plugin for Ionic.
Shows me this error: Cannot find module '@ ionic-native/firebase' after installing this way:

$ ionic cordova plugin add cordova-plugin-firebase
$ npm install --save @ ionic-native/firebase

import { Firebase } from '@ ionic-native/firebase';
import { Component } from '@ angular/core';
import { NavController } from 'ionic-angular';

@ Component({ 
  selector: 'page-home',
  templateUrl: 'home.html'
})
export class HomePage {

  constructor(public navCtrl: NavController,
    private firebase: Firebase) {

  } 

}

My ionic cordova plugin --list:

cordova-plugin-device 2.0.1 “Device”
cordova-plugin-firebase 0.1.25 “Google Firebase Plugin”
cordova-plugin-ionic-keyboard 2.0.5 “cordova-plugin-ionic-keyboard”
cordova-plugin-ionic-webview 1.2.0 “cordova-plugin-ionic-webview”
cordova-plugin-splashscreen 5.0.2 “Splashscreen”
cordova-plugin-whitelist 1.3.3 “Whitelist”

@DanielAccorsi
Copy link
Author

To solve the problem, I needed to put this line in package.json:
"@ ionic-native/firebase": "4.7.0",

Maybe the install script needs to put this, right?

@Unkn0wn0x
Copy link

As @DanielAccorsi said, You need to install the Ionic Native Wrapper for this plugin.

Checkout the Ionic Documentation here:

@soumak77
Copy link
Contributor

closing an non-actionable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants