cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suraj Pindoria (JIRA)" <>
Subject [jira] [Closed] (CB-9222) Browserify doesn't work on windows
Date Wed, 05 Aug 2015 18:15:05 GMT


Suraj Pindoria closed CB-9222.
    Resolution: Fixed

> Browserify doesn't work on windows
> ----------------------------------
>                 Key: CB-9222
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: CordovaLib
>            Reporter: Steve Gill
>            Assignee: Steve Gill
> Reported by [~vldmrrr]
> The application builds and runs, but after running none of tests are working (I'm aware
of issues with test-framework, so I've tried to run non-plugin tests), and there is a lot
of messages in console: "Cannot find module .../platforms/ios/platform_www/cordova-js-src/exec".
> Also I've found some potential problems with browserify workflow in Windows environment:
>     1. In lines 59, 62 and 71 of require-tr.js [1] - the regex pattern uses '\n' symbol
to match line ending, but in my experiments this is not enough, and it is necessary to use
'[\r\n]' to match line end properly (at least on Windows).
>     2. The line 174 in require-tr.js [1] introduces condition which is ambiguous. On
POSIX systems, absolute paths are not passing this condition, since they starts with '/' but
on Windows 'indexOf('/') !== 0' is true for absolute paths, so the code under if will be executed
for such modules.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message