I am trying to save a file on the device. I try to install the file native on ionic 2 using this command line.
ionic plugin add --save cordova-plugin-file
When i try to import it:
import { File } from ‘@ionic-native/file’;
the app show me this error
[11:50:08] typescript: C:/Users/path/node_modules/@ionic-native/file/index.d.ts, line: 533
Type 'any' is not a constructor function type.
L533: export declare class File extends IonicNativePlugin {
how can i resolve this problem ?