Skip to content

Failed to parse source-maps with PercentageEncoded Urls #135

Closed
@viyaha

Description

@viyaha
  • Operating System: Windows
  • Node Version: 14.15.0
  • NPM Version: 6.14.8
  • webpack Version: 5.9.0
  • source-map-loader Version: 1.1.2

Expected Behavior

No warnings, source-maps can be loaded.

Actual Behavior

Failed to parse source map from '[...]%7Bindex%7D.js.map' file: Error: ENOENT: no such file or directory, open '[...]%7Bindex%7D.js.map'

Code

Typescript fixed in issue regarding percentage encoded Source-Maps:
see:
microsoft/TypeScript#41752
microsoft/TypeScript#40951

The source-map-loader seems to not be able to load percentage-encoded file-urls:

{index}.ts:

console.log("just testing... doesn't matter what we use here");

{index}.js (compiled with typescript 4.0.5, source-maps can be loaded)

console.log("just testing... doesn't matter what we use here");
//# sourceMappingURL={index}.js.map

{index}.js (compiled with typescript 4.1.2,source-maps cannot be loaded)

console.log("just testing... doesn't matter what we use here");
//# sourceMappingURL=%7Bindex%7D.js.map

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions