You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2023/01/07 22:10:06 UTC

[GitHub] [cordova-plugin-file-transfer] marcelloinfoweb opened a new issue, #358: Can't resolve 'cordova-plugin-file-transfer'

marcelloinfoweb opened a new issue, #358:
URL: https://github.com/apache/cordova-plugin-file-transfer/issues/358

   Install command: `npm install https://github.com/apache/cordova-plugin-file-transfer`
   
   Command: vue-cli-service serve
   ![image](https://user-images.githubusercontent.com/2093128/211172027-b2304d6c-1166-4c43-b620-aec08c5b8ebe.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-file-transfer] breautek commented on issue #358: Can't resolve 'cordova-plugin-file-transfer'

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #358:
URL: https://github.com/apache/cordova-plugin-file-transfer/issues/358#issuecomment-1375721504

   Cordova plugins aren't really an NPM module so to speak. They are distributed through NPM, but they cannot be required or resolved as a typical NPM module. Cordova has it's own module system in which Cordova will embed the plugin's JS into your application when Cordova is loaded, clobbering the global namespace as defined in their `plugin.xml` file. It is an antiquated system, an artefact that existed before NPM even existed.
   
   So to work around your issue, remove the `cordova-plugin-file-transfer` import in your code. Depending on your framework/build system, you may also need to prefix the API call with `window.` or configure it to accept additional global variables.
   
   As long as the `deviceready` event has fired, any cordova plugin APIs should be available and ready to be used.
   
   Closing as not a bug.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-file-transfer] breautek closed issue #358: Can't resolve 'cordova-plugin-file-transfer'

Posted by GitBox <gi...@apache.org>.
breautek closed issue #358:  Can't resolve 'cordova-plugin-file-transfer' 
URL: https://github.com/apache/cordova-plugin-file-transfer/issues/358


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org