You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Vadim Chernev (JIRA)" <ji...@apache.org> on 2017/05/08 14:52:04 UTC
[jira] [Commented] (CB-12596) cannot use
cordova-plugin-file-transfer due to types issue
[ https://issues.apache.org/jira/browse/CB-12596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16000855#comment-16000855 ]
Vadim Chernev commented on CB-12596:
------------------------------------
The same problem tsconfig.json file.
{
"compilerOptions": {
"baseUrl": "./src",
"allowSyntheticDefaultImports": true,
"declaration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": true,
"lib": [
"dom",
"es5",
"es6",
"es7"
],
"target": "es5",
"module": "es6",
"moduleResolution": "node"
},
"exclude": [
"node_modules"
],
"compileOnSave": false,
"atom": {
"rewriteTsconfig": false
}
}
> cannot use cordova-plugin-file-transfer due to types issue
> ----------------------------------------------------------
>
> Key: CB-12596
> URL: https://issues.apache.org/jira/browse/CB-12596
> Project: Apache Cordova
> Issue Type: Bug
> Components: Ionic
> Affects Versions: 6.4.0, 6.5.0
> Environment: {noformat}
> Installed platforms:
> android 6.1.2
> {noformat}
> {noformat}
> cordova-plugin-app-event 1.2.0 "Application Events"
> cordova-plugin-app-version 0.1.9 "AppVersion"
> cordova-plugin-buildinfo 1.1.0 "BuildInfo"
> cordova-plugin-compat 1.1.0 "Compat"
> cordova-plugin-console 1.0.5 "Console"
> cordova-plugin-crosswalk-webview 2.3.0 "Crosswalk WebView Engine"
> cordova-plugin-device 1.1.4 "Device"
> cordova-plugin-file 4.3.2 "File"
> cordova-plugin-file-opener2 2.0.8 "File Opener2"
> cordova-plugin-file-transfer 1.6.2 "File Transfer"
> cordova-plugin-screen-orientation 1.4.2 "Screen Orientation"
> cordova-plugin-splashscreen 4.0.1 "Splashscreen"
> cordova-plugin-whitelist 1.3.1 "Whitelist"
> de.appplant.cordova.plugin.local-notification 0.8.4 "LocalNotification"
> ionic-plugin-keyboard 2.2.1 "Keyboard"
> {noformat}
> Reporter: Jeffrey Milloy
> Labels: plugin-file, plugin-file-transfer, typescript, typings
> Original Estimate: 0.5h
> Remaining Estimate: 0.5h
>
> I am using Ionic 2 (2.2.1). Building the app with {{ionic-app-scripts build}} fails during transpile with this error:
> {noformat}
> typescript: plugins/cordova-plugin-file-transfer/types/index.d.ts, line:
> Cannot find type definition file for 'cordova-plugin-file':
> L8: * @param server URL of the server to receive the file, as encoded by
> L9: * @param successCallback A callback that is passed a FileUploadResult
> L10: * @param errorCallback A callback that executes if an error occurs retrieving the FileUploadResult.
> {noformat}
> So the file transfer plugin is completely unusable. The build transpiles without errors if I simply deleted line 9 of {{cordova-plugin-file-transfer/types/index.d.ts}}
> {code}
> /// <reference types="cordova-plugin-file" />
> {code}
> My typescript version is {{typescript@2.0.10}}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org