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.

Inline sourceMappingURL not generated

See original GitHub issue

Hi, noticed that latest version of MetroBundler doesn’t add inlined sourceMappingURL at the bottom. E.g. when running with RN0.54 which uses Metro 0.28.0 it doesn’t generate it.

When hitting http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false it produce the output but with no sourceMappingURL at the bottom.

Compare to RN0.53 which uses Metro 0.24.7 it generate the following bottomline: //# sourceMappingURL=http://localhost:8081/

Is it desired behavior or something has changed in recent versions of metro bundler?

BTW seems that sourcemaps are available by hitting e.g. the following URL: http://localhost:8081/ but where are the sourceMappingURL at the end?

I’m asking this because VSCode react-native extension relies on this logic here, so would be good if there will be an option to generate it.

Thanks in advance for looking at!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

rafecacommented, Mar 7, 2018

Thanks for reporting! This was fixed by 2b32b08b13e879c2d4f8f53299c2048653fc62e9, but we haven’t released a new version of metro yet, I’m going to release 0.29.0 very soon

justinwaitecommented, Mar 14, 2018

Is there anyway to force react-native to use a specific version of metro?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Doesn't generate inline source maps · Issue #60 - GitHub
Ran into this issue when tried to disable sourcemaps completely. Looks like when "sourceMap": false is present in tsconfig, JSON.parse in ...
Read more >
Chrome not requesting source map in inline script tag
I know Chrome isn't requesting the source map because I set the server to log all requests and also checked the Chrome network...
Read more >
4 Reasons Why Your Source Maps are Broken - Sentry Blog
Missing original source files. Let's assume that you've properly generated your source map, and your sourceMappingURL (or SourceMap header) ...
Read more >
Create Source Maps in TypeScript: Inline or File
The is what's pointing to our map of our original source code. Alongside the index.js will be an index.
Read more >
Inline style element sourcemaps not working in Firefox
The sourcemap should have been picked up and the link into Style Editor works. As note - this works correctly in Chrome. It...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found