cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse MacFadyen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-9268) adding platform wp8 creates Cannot find module 'Q' from create.js:20:13
Date Tue, 25 Aug 2015 23:39:45 GMT

     [ https://issues.apache.org/jira/browse/CB-9268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jesse MacFadyen resolved CB-9268.
---------------------------------
    Resolution: Fixed

This has since been addressed by changing require('Q') to require('q') ...
Only an issue on case sensitive file systems ( like yours )
Update your cordova-lib to get the latest changes.

> adding platform wp8 creates Cannot find module 'Q' from create.js:20:13
> -----------------------------------------------------------------------
>
>                 Key: CB-9268
>                 URL: https://issues.apache.org/jira/browse/CB-9268
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: WP8
>    Affects Versions: 5.1.2
>         Environment: Ubuntu 14.04
>            Reporter: Sander Mets
>            Assignee: Jesse MacFadyen
>
> there is line 
>  
> var Q     = require('Q'),
> (should be var Q     = require('q') ?)
> in create.js, which breaks following command:
> $ cordova platform add wp8
> WARNING: Applications for platform wp8 can not be built on this OS - linux.
> npm http GET https://registry.npmjs.org/cordova-wp8
> npm http 304 https://registry.npmjs.org/cordova-wp8
> Adding wp8 project...
> module.js:340
>     throw err;
>           ^
> Error: Cannot find module 'Q'
>     at Function.Module._resolveFilename (module.js:338:15)
>     at Function.Module._load (module.js:280:25)
>     at Module.require (module.js:364:17)
>     at require (module.js:380:17)
>     at Object.<anonymous> (/home/sander/.cordova/lib/npm_cache/cordova-wp8/3.8.1/package/bin/lib/create.js:20:13)
>     at Module._compile (module.js:456:26)
>     at Object.Module._extensions..js (module.js:474:10)
>     at Module.load (module.js:356:32)
>     at Function.Module._load (module.js:312:12)
>     at Module.require (module.js:364:17)
> Error: /home/sander/.cordova/lib/npm_cache/cordova-wp8/3.8.1/package/bin/create: Command
failed with exit code 8
>     at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:134:23)
>     at ChildProcess.EventEmitter.emit (events.js:98:17)
>     at maybeClose (child_process.js:743:16)
>     at Process.ChildProcess._handle.onexit (child_process.js:810:5)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message