I want to use the cordova file transfer plugin (through the Ionic-Native transfer module).
The app won’t run because there is a transpile error with the file transfer plugin and the file plugin:
transpile started ...
typescript: plugins/cordova-plugin-file-transfer/types/index.d.ts, line: 9
Cannot find type definition file for 'cordova-plugin-file'.
L8: * @param server URL of the server to receive the file, as encoded by encodeURI().
L9: * @param successCallback A callback that is passed a FileUploadResult object.
L10: * @param errorCallback A callback that executes if an error occurs retrieving the FileUploadResult.
I installed @types/cordova-plugin-file
through npm, but the app won’t run because of duplicate identifiers in the two cordova-plugin-file packages:
transpile started ...
typescript: node_modules/@types/cordova-plugin-file/index.d.ts, line: 376
Duplicate identifier 'PERSISTENT'.
typescript: node_modules/@types/cordova-plugin-file/index.d.ts, line: 377
Duplicate identifier 'TEMPORARY'.
typescript: plugins/cordova-plugin-file/types/index.d.ts, line: 376
Duplicate identifier 'PERSISTENT'.
typescript: plugins/cordova-plugin-file/types/index.d.ts, line: 377
Duplicate identifier 'TEMPORARY'.
What is the right approach here?