XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-lib
    • Labels:
      None

      Description

      Reported by vldmrrrr

      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.

        Attachments

          Activity

            People

            • Assignee:
              stevegill Steve Gill
              Reporter:
              stevegill Steve Gill
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: