Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12284

Source map source file not found in Chrome

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Master
    • Master
    • cordova-serve
    • None

    Description

      If you have a Cordova project that does some sort of transpiling (for example, TypeScript -> JavaScript) and the source files aren't under the www folder, the original source files can't be found when debugging in a browser.

      For example, you might have a project with these files:

      scripts/foo.ts
      www/scripts/foo.js
      www/scripts/foo.js.map

      The map file will likely link back to the original ts file as ../../scripts/foo.ts

      Launch the project in a browser (cordova run browser), the path to the original ts file is invalid (in the context of the server) and the file isn't found.

      Attachments

        Issue Links

          Activity

            People

              TimBarham Tim Barham
              TimBarham Tim Barham
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: