sarriaroman / FabricPlugin

Fabric.io plugin for Cordova or Phonegap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FabricPlugin and Ionic3

pertoft opened this issue · comments

I have followed the guide at the official Ionic documentaiton: https://ionicframework.com/docs/v3/native/crashlytics/

ionic cordova plugin add cordova-fabric-plugin --variable FABRIC_API_KEY=XXX --variable FABRIC_API_SECRET=xxx
npm install --save @ionic-native/fabric

In app.module.ts:
...
import { Crashlytics } from '@ionic-native/fabric';
...
providers: [
Crashlytics,
StatusBar,
SplashScreen,
...

VS Code gives the error:

image

Build error:
image

Have I missed something or is there a bug here?

λ ionic info

Ionic:

ionic (Ionic CLI) : 4.10.0 (C:\Users\pto\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.1

Cordova:

cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 7.1.4, browser 5.0.4
Cordova Plugins : no whitelisted plugins (9 plugins total)

System:

NodeJS : v8.11.2 (C:\Program Files\nodejs\node.exe)
npm : 6.5.0
OS : Windows 10

C:\pto\source\BabyLoungeApp (master) (BabyLounge@0.0.6)
λ