[ 
https://issues.apache.org/jira/browse/CB-14191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16532865#comment-16532865
 ] 

ASF GitHub Bot commented on CB-14191:
-------------------------------------

ruslan-bikkinin opened a new pull request #10: CB-14191 (android) Fix bug with 
module requiring
URL: https://github.com/apache/cordova-serve/pull/10
 
 
   <!--
   Please make sure the checklist boxes are all checked before submitting the 
PR. The checklist
   is intended as a quick reference, for complete details please see our 
Contributor Guidelines:
   http://cordova.apache.org/contribute/contribute_guidelines.html
   Thanks!
   -->
   
   ### Platforms affected
   
   At least android.
   
   ### What does this PR do?
   
   This PR fixes requiring `Api.js` module for case-sensitive file systems like 
on Linux because actual filename is upper cased. Bug leads to `Project does not 
include the specified platform: android error.` error when trying to start 
server on android platform (cordova-android@~7.0.0).
   
   ### What testing has been done on this change?
   
   I tested it on Ubuntu 16.04 host machine with ext4 fs.
   
   ### Checklist
   - [x] [Reported an issue](http://cordova.apache.org/contribute/issues.html) 
in the JIRA database
   - [x] Commit message follows the format: "CB-3232: (android) Fix bug with 
resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform 
affected.
   - [ ] Added automated test coverage as appropriate for this change.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Project does not include the specified platform: android error.
> ---------------------------------------------------------------
>
>                 Key: CB-14191
>                 URL: https://issues.apache.org/jira/browse/CB-14191
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-serve
>    Affects Versions: [email protected]
>         Environment: OS: Ubuntu 16.04
> Cordova CLI: 8.0.0
>  
>            Reporter: Ruslan Bikkinin
>            Priority: Major
>
> Code on this this line: 
> [https://github.com/apache/cordova-serve/blob/master/src/util.js#L81] is 
> trying to require `cordova/api` module but actual filename generated by 
> cordova is Api.js and no file is being found on case-sensitive file systems 
> like ext4. It leads to _Project does not include the specified platform: 
> android_ error.
> To reproduce issue please do the following:
>  
>  # Make sure that you are using case-sensitive file system
>  # Clone demo repo: https://github.com/ruslan-bikkinin/cordova-serve-repro
>  # cd cordova-serve-repro
>  # npm i
>  # node serve
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to