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 2019/03/27 15:19:48 UTC

[GitHub] [cordova] parasappafluke opened a new issue #87: Unable to add platform for the plugin which is created using plugman

parasappafluke opened a new issue #87: Unable to add platform for the plugin which is created using plugman
URL: https://github.com/apache/cordova/issues/87
 
 
   # Bug Report
   Unable to add platform for the plugin which is created using plugman.
   ## Problem
   I have created a plugin using below command and the plugin was created successfully.
   
   plugman create --name <pluginName> --plugin_id <pluginID> --plugin_version <version> [--path <directory>] [--variable NAME=VALUE]
   
   But when i try to add a platform with below command, it fails.
   
   plugman platform add --platform_name ios
   
   ### What is expected to happen?
   
   It should add platform details to plugin.xml file which is created from the previous step.
   
   ### What does actually happen?
   I got error on Terminal saying
   "(node:6361) UnhandledPromiseRejectionWarning: Error: platform: true not yet supported"
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   (node:6361) UnhandledPromiseRejectionWarning: Error: platform: true not yet supported
       at Object.add (/usr/local/lib/node_modules/plugman/node_modules/cordova-lib/src/plugman/platform.js:51:35)
       at Object.module.exports [as platform] (/usr/local/lib/node_modules/plugman/node_modules/cordova-lib/src/plugman/platform_operation.js:23:38)
       at Object.platform (/usr/local/lib/node_modules/plugman/node_modules/cordova-lib/src/plugman/plugman.js:153:17)
       at Object.<anonymous> (/usr/local/lib/node_modules/plugman/main.js:87:42)
       at Module._compile (internal/modules/cjs/loader.js:701:30)
       at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
       at Module.load (internal/modules/cjs/loader.js:600:32)
       at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
       at Function.Module._load (internal/modules/cjs/loader.js:531:3)
       at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
   (node:6361) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
   (node:6361) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   plugman platform add --platform_name ios
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   OS: Mac OS X 10.14.1
   
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   Cordova: 9.0.0
   Plugman: 3.0.0
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [ ] I searched for existing GitHub issues
   - [ ] I updated all Cordova tooling to most recent version
   - [ ] I included all the necessary information above
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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