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.

Error when Analyzing bundle (source-map-explorer).

See original GitHub issue

I would like to point out an issue I am facing. I followed the exact steps in this docs but unfortunately when I try to run npm run analyze it gives the following error:

npm run analyze

> tic-tac-toe@0.1.0 analyze
> source-map-explorer build/static/js/*.js

build/static/js/main.0e109ef0.js
  You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer

npm run build was successful.

Can anyone look into this please.

Thanks!

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
aconradcommented, Aug 4, 2022

This is how I got it to work in package.json:

{
  "scripts": {
    "analyze": "NODE_OPTIONS=--no-experimental-fetch source-map-explorer 'build/static/js/*.js'"
  }
}
1reaction
nickmccurdycommented, Jun 4, 2022

I get this error when running react-scripts start.

Read more comments on GitHub >

github_iconTop Results From Across the Web

source-map-explorer - npm
Possible error codes are: Unknown; NoBundles - Empty array is passed to explore; OneSourceSourceMap - Bundle source map only contains one source ...
Read more >
Analyzing Angular bundle with Source Map Explorer
The source map explorer determines which file each byte in your minified code came from. It shows you an interactive tree-map visualization to ......
Read more >
source-map-explorer error: Check that you are using the ...
This answer is based on @piecioshka's ~ but disables column/line mapping check, as indicated in this source-map-explorer#README.
Read more >
TIL: Analyzing Angular App's Bundle Size with source-map ...
One way to solve this issue is to tell Angular CLI to put vendor scripts in the main bundle file by setting --vendor-chunk...
Read more >
Angular bundle optimization using Webpack Bundle analyzer ...
We take a look at two tools - Webpack Bundle analyzer/ Sourcemap explorer - which can be used to optimize generated js bundle...
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