question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Source maps broken for .esm.js file, work fine for non esm js files

See original GitHub issue

Do you want to request a feature or report a bug? bug

What is the current behaviour? After updating from rc.4 to rc.10 source maps broken for all .esm.js files but work fine for non esm files eg. of a source map for file bundle.43470.esm.js - {"version":3,"sources":[],"names":[],"mappings":"","file":"bundle.43470.esm.js","sourceRoot":""}

If the current behaviour is a bug, please provide the steps to reproduce. run preact build with esm flag

What is the expected behaviour? source map generated should be correct

If this is a feature request, what is motivation or use case for changing the behaviour?

Please mention other relevant information.

Please paste the results of preact info here. Environment Info: System: OS: macOS Mojave 10.14.6 CPU: (8) x64 Intel® Core™ i7-4870HQ CPU @ 2.50GHz Binaries: Node: 10.16.3 - /usr/local/bin/node npm: 6.14.5 - /usr/local/bin/npm Browsers: Chrome: 83.0.4103.61 Firefox: 76.0.1 Safari: 13.1.1 npmPackages: preact: ^10.2.1 => 10.2.1 preact-cli: 3.0.0-rc.10 => 3.0.0-rc.10 preact-render-to-string: ^5.1.3 => 5.1.3 preact-router: ^3.1.0 => 3.1.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
prateekbhcommented, May 28, 2020
0reactions
prateekbhcommented, Jun 11, 2020

we’re working on a final RC for this month

Read more comments on GitHub >

github_iconTop Results From Across the Web

JS map file 'sources' incorrect for dist/esm files #303 - GitHub
I am getting warnings for each rrule 'esm' file stating it cannot find the source map, as it is trying to find it...
Read more >
4 Reasons Why Your Source Maps are Broken - Sentry Blog
This likely means that your source map doesn't contain or link to your original source files. Without your original source files, you're still ......
Read more >
How can I fix the "DevTools failed to load SourceMap: Could ...
This worked for me: Go to Inspect → Settings (Symbol) gear → Uncheck Enable JavaScript source maps and Enable CSS source map. Refresh....
Read more >
Node Modules at War: Why CommonJS and ES ... - Code Red
ESM scripts can require() CJS scripts, even with named exports, but it's typically not worth the trouble, because it requires even more ...
Read more >
Compiling and bundling TypeScript libraries with Webpack
The problem comes with the fact that type declarations files aren't valid JavaScript files (hence the .ts extension) and that causes problems in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found