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.

Regression: Build Error: Don't know how to insertURL for sourcemaps

See original GitHub issue

After 99a3202:

  1. Run ember build with sourcemaps:
webpackConfig: {
  devtool: 'source-map',
}
  1. Experience Build Error:
Build Error (PackagerRunner)
don't know how to insertURL /assets/chunk.9487b3713b2712e9dae6.js.map

Build does not break before 99a320288ac0b91ea9c8b962c73dace004f31fae. Probably caused by fallthrough condition url.endsWith('.js') for js.map. See https://github.com/embroider-build/embroider/commit/99a320288ac0b91ea9c8b962c73dace004f31fae#diff-f6871a419b7638a206e71923afc7910d1a3252cdfa5c563a5fb7e455063146b0L44-L54:

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
johanrdcommented, Aug 16, 2021

Closing, as source maps does not seem to be referenced in index.html anymore when building with v0.43.

Which means that #734 can be closed too I guess, @naiyt, I you experience the same as me.

0reactions
johanrdcommented, May 10, 2021

@naiyt Thanks. The fix is quite specific, but it does the job.

@ef4 If you don’t see any obvious shortcomings to #734, it would be great to have it merged in, as now any project with sourcemaps is stranded on v <= 35.1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

enable-source-maps is unnecessarily slow with large ... - GitHub
I know --enable-source-maps is experimental and it's maybe an edge case, because the js files are only large enough the show the effect...
Read more >
Sourcemaps are detected in chrome but original source is not ...
Open up the source map via url and look for the sources property for the original file name: ... If you don't see...
Read more >
1437937 - WebExtensions Doesn't Find Source Maps
Click debugger link for current extension. Look at the Deugger source when I've locked the popup open. Actual results: The console shows a...
Read more >
Troubleshooting Source Maps for JavaScript
Troubleshooting Source Maps · Verify a release is configured in your SDK · Verify artifacts are uploaded · Verify sourceMappingURL is present ·...
Read more >
508270 - Source maps cache not refreshed - chromium
However, I still would expect Chrome to handle source map caching. ... I don't know if this helps at all, but we too...
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