You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Analyzing bundles with source-map-explorer doens't work #6715
Can you try npx source-map-explorer 'build/static/js/*.js'
It seems you have everything setup correctly. Lazy loaded modules still creates a file in a separate bundle and I have tried it on my setup with no problems.
It's either a windows issue, or that you are running an older version that you did not install (seems to be the latest from your package.json).
Either wise I'd need a repo to try it out further.
I'm glad it worked out. I am not sure why it didn't work in the first place with npm scripts, if you get a chance can you do a npm cache clean and npm analyse again to see if that would fix things with the npm script?
@bugzpodder, sure. Here is a copy paste from my PowerShell:
PS C:\Users\carpb\projects\gw\gw-ts> npm cache cleannpm ERR! As of npm@5, the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent,
use 'npm cache verify' instead. On the other hand, if you're debugging an issue with the installer, you can use `npm install --cache /tmp/empty-cache` to use a temporary cache instead of nuking the actual one.npm ERR!
npm ERR! If you're sure you want to delete the entire cache, rerun this command with --force.npm ERR! A complete log of this run can be found in:npm ERR! C:\Users\carpb\AppData\Roaming\npm-cache\_logs\2019-03-27T09_00_06_229Z-debug.log
followed by:
PS C:\Users\carpb\projects\gw\gw-ts> npm cache verify
Cache verified and compressed (~\AppData\Roaming\npm-cache\_cacache):
Content verified: 5828 (247906215 bytes)
Content garbage-collected: 2194 (104110440 bytes)
Index entries: 10292
Finished in 39.124s
I have the same error. Also Win10. It works via npx source-map-explorer and via node_mobiles/.bin/source-map-explorer from console. But doesn't work both with npm run analyze and yarn analyze
For any windows users running into the same issue try removing the quotes. Even when trying the npx workaround also I ran into the same issues until I removed the quotes.
node : V11.10.1
npm : 6.7.0
Reacted by chuanjingluo and Matthew Abbott
Reacted by iKlsR, Chad Rickman, Oskar Persson, Diego Santos and chuanjingluo
Activity
bugzpodder commentedon Mar 25, 2019
Can you try npx source-map-explorer 'build/static/js/*.js'
It seems you have everything setup correctly. Lazy loaded modules still creates a file in a separate bundle and I have tried it on my setup with no problems.
It's either a windows issue, or that you are running an older version that you did not install (seems to be the latest from your package.json).
Either wise I'd need a repo to try it out further.
carpben commentedon Mar 26, 2019
npx source-map-explorer 'build/static/js/*.js'works. Thanks!How can we solve this for others? Perhaps remove the script altogether, and suggest
npx source-map-explorer 'build/static/js/*.js'instead?bugzpodder commentedon Mar 26, 2019
I'm glad it worked out. I am not sure why it didn't work in the first place with npm scripts, if you get a chance can you do a npm cache clean and npm analyse again to see if that would fix things with the npm script?
carpben commentedon Mar 27, 2019
@bugzpodder, sure. Here is a copy paste from my PowerShell:
followed by:
tirli commentedon Apr 17, 2019
I have the same error. Also Win10. It works via
npx source-map-explorerand vianode_mobiles/.bin/source-map-explorerfrom console. But doesn't work both withnpm run analyzeandyarn analyzeyarn cache cleandoesn't helpmigodev42 commentedon Apr 18, 2019
Same problem solved by
npx source-map-explorer 'build/static/js/*.js'.mistereechapman commentedon Apr 23, 2019
If the documentation is updated to remove the single quotes from the path then this will work.
mistereechapman commentedon Apr 24, 2019
For any windows users running into the same issue try removing the quotes. Even when trying the npx workaround also I ran into the same issues until I removed the quotes.
node : V11.10.1
npm : 6.7.0
iKlsR commentedon Apr 24, 2019
@mistereechapman Thanks, the other way for me using
git-bash. Using double quotes works. 🤷♂️yi-huan commentedon May 17, 2019
Thanks, Using double quotes works.

guillermo commentedon May 21, 2019
After researching this seems to work:
Found here: https://medium.com/@jbandi/you-can-use-create-react-app-with-webpack-bundle-analyzer-without-ejecting-1b8727d9b2ea
S3gillu commentedon May 21, 2019
This is the perfect workaround as per now
bugzpodder commentedon Jun 15, 2019
Source map explorer 2.0 is out and quotes should now be fixed.