-
-
Notifications
You must be signed in to change notification settings - Fork 27k
Analyzing bundles with source-map-explorer doens't work #6715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you try npx source-map-explorer 'build/static/js/*.js' |
How can we solve this for others? Perhaps remove the script altogether, and suggest |
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:
followed by:
|
I have the same error. Also Win10. It works via
|
Same problem solved by |
If the documentation is updated to remove the single quotes from the path then this will work. |
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 |
@mistereechapman Thanks, the other way for me using |
After researching this seems to work: $ npm run build -- --stats
$ npx webpack-bundle-analyzer ./build/bundle-stats.json |
This is the perfect workaround as per now |
Source map explorer 2.0 is out and quotes should now be fixed. |
Is this a bug report?
yes
Did you try recovering your dependencies?
yes
Which terms did you search for in User Guide?
analyze
Environment
Environment Info:
System:
OS: Windows 10
CPU: x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
Binaries:
Yarn: 1.9.2 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.9.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: 42.17134.1.0
Internet Explorer: 11.0.17134.1
npmPackages:
react: ^16.7.0 => 16.8.5
react-dom: ^16.7.0 => 16.8.5
react-scripts: ^2.1.5 => 2.1.8
npmGlobalPackages:
create-react-app: Not Found
Steps to Reproduce
a. npm install --save source-map-explorer
b. add
"analyze": "source-map-explorer 'build/static/js/*.js'"
to scripts.c. run "npm run build" followed by "npm run analyse".
Actual Behavior
Error: No file(s) found

The text was updated successfully, but these errors were encountered: