breautek opened a new issue #878:
URL: https://github.com/apache/cordova-lib/issues/878


   # Bug Report
   
   ## Problem
   
   Code:
   
   
https://github.com/apache/cordova-lib/blob/dd872f044211592b11c17d23d56cd17192e4b51f/src/cordova/restore-util.js#L99-L112
   
   ### What is expected to happen?
   
   This should be able to find the spec version
   
   ### What does actually happen?
   
   spec will always result in `undefined`
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   
   This is because we are comparing `pkgJson.cordova.platforms` which is an 
array of non-prefixed cordova platforms, and then we are comparing those values 
against `dependencies` or `devDependencies` which is always going to be a 
`cordova-` prefixed platform. This compatibility will always result in an 
undefined spec.
   
   This issue is described more in depth in [this 
thread](https://github.com/apache/cordova-lib/pull/874#pullrequestreview-751944535).
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   
   
   
   ### 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.
   -->
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [ x] 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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to