Skip to content

Failed to parse source-maps with PercentageEncoded Urls #135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
viyaha opened this issue Dec 4, 2020 · 0 comments · Fixed by #136
Closed

Failed to parse source-maps with PercentageEncoded Urls #135

viyaha opened this issue Dec 4, 2020 · 0 comments · Fixed by #136

Comments

@viyaha
Copy link

viyaha commented Dec 4, 2020

  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant