Can't use ThreeDeeTouch plugin!


#1

I’ve ionic2 project set up with TypeScirpt. I’ve typed, ionic plugin add cordova-plugin-3dtouch, gave following output.

Fetching plugin “cordova-plugin-3dtouch” via npm
Installing “cordova-plugin-3dtouch” for ios
Saving plugin to package.json file

And in package.json file plugin saved as,

“cordovaPlugins”: [
     …
     …
      “cordova-plugin-3dtouch”
],

But when i import ThreeDeeTouch from ionic-native in my typescript file,
import {ThreeDeeTouch} from ‘ionic-native’;
giving me error as Module “…/node_modules/ionic-native/dist/index” has no export member ‘ThreeDeeTouch’.

How i can use 3DTouch mentioned at,


#2

I got solution for this, I had to update ionic-native to latest.
Using npm i --save ionic-native@latest