I’ve installed the Facebook plugin (http://ionicframework.com/docs/native/facebook/), and now I’m getting this error below. I know this should be something to do with me forgetting something small, but don’t recall what. Any help will be highly appreciated!!
Runtime Error
Cannot read property 'prototype' of undefined
Hi @dimitri320
Could you send your fully error here or screenshot
After Cannot read property 'prototype' of undefined
Thanks
Typescript Error
Module '"/Users/app/node_modules/@ionic-native/core/index"' has no exported member 'IonicNativePlugin'.
node_modules/@ionic-native/facebook/index.d.ts
import { IonicNativePlugin } from '@ionic-native/core';
export interface FacebookLoginResponse {
Ionic Framework: 2.0.1
Ionic Native: ^2.5.1
Ionic App Scripts: 1.1.3
Angular Core: 2.2.1
Angular Compiler CLI: 2.2.1
Node: 6.9.2
Hi @dimitri320
Some issue in
index.d.ts
this error when generated you install npm and some update of npm this issue will happen
check your npm version using npm -v
go to node_modules/@ionic-native/facebook/index.d.ts this path and send here code
Thanks
These two have to be of the same version, and then all works. So I had to update these.
"@ionic-native/core": "^3.6.1",
"@ionic-native/network": "^3.6.1",