Skip to content
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

[Bug]: Cannot open / create a report via cli #482

Closed
kwonoj opened this issue Aug 28, 2024 · 6 comments
Closed

[Bug]: Cannot open / create a report via cli #482

kwonoj opened this issue Aug 28, 2024 · 6 comments
Labels
🐞 bug Something isn't working

Comments

@kwonoj
Copy link
Contributor

kwonoj commented Aug 28, 2024

Version

System:
    OS: macOS 14.6.1
    CPU: (12) arm64 Apple M3 Pro
    Memory: 80.20 MB / 36.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 128.0.6613.113
    Safari: 17.6
  npmPackages:
    @rsdoctor/webpack-plugin: ^0.3.11 => 0.3.11
    [email protected]

Details

When running cli, getting some error message instead of opening up the report.

Reproduce link

Reproduce Steps

[@rsdoctor/cli] ✖ Cannot create a string longer than 0x1fffffe8 characters

Error: Cannot create a string longer than 0x1fffffe8 characters
    at Buffer.toString (node:buffer:813:17)
    at decompressText (/Users/ohjoong.kwon/.npm/_npx/d63fae48b24039a6/node_modules/@rsdoctor/utils/dist/cjs/common/algorithm.js:49:83)
    at fetchShardingData (/Users/ohjoong.kwon/.npm/_npx/d63fae48b24039a6/node_modules/@rsdoctor/utils/dist/cjs/common/manifest.js:41:97)
    at async /Users/ohjoong.kwon/.npm/_npx/d63fae48b24039a6/node_modules/@rsdoctor/utils/dist/cjs/common/manifest.js:55:18
    at async Promise.all (index 10)
    at async Object.fetchShardingFiles (/Users/ohjoong.kwon/.npm/_npx/d63fae48b24039a6/node_modules/@rsdoctor/utils/dist/cjs/common/manifest.js:44:17)
    at async action (/Users/ohjoong.kwon/.npm/_npx/d63fae48b24039a6/node_modules/@rsdoctor/cli/dist/commands/analyze.js:77:19)
    at async Object.handler (/Users/ohjoong.kwon/.npm/_npx/d63fae48b24039a6/node_modules/@rsdoctor/cli/dist/index.js:63:11)
@kwonoj kwonoj added the 🐞 bug Something isn't working label Aug 28, 2024
@easy1090
Copy link
Contributor

what the size of the .rsdoctor dir?

which dir is biggest in .rsdoctor? chunkgraph or moduleCodeMap or loaders ?

@kwonoj
Copy link
Contributor Author

kwonoj commented Aug 29, 2024

6.0M	./build/.rsdoctor//moduleGraph
 76K	./build/.rsdoctor//packageGraph
189M	./build/.rsdoctor//moduleCodeMap
172K	./build/.rsdoctor//plugin
1.5M	./build/.rsdoctor//otherReports
4.0K	./build/.rsdoctor//envinfo
 27M	./build/.rsdoctor//loader
8.0K	./build/.rsdoctor//configs
800K	./build/.rsdoctor//errors
238M	./build/.rsdoctor//chunkGraph
4.0K	./build/.rsdoctor//resolver
4.0K	./build/.rsdoctor//summary
472M	./build/.rsdoctor/

@easy1090
Copy link
Contributor

Try this configuration: https://rsdoctor.dev/config/options/options#features

feature: ['lite', 'loader','plugins','bundle']

@kwonoj
Copy link
Contributor Author

kwonoj commented Aug 30, 2024

Yes, think I can use some options to control. So in this case I can't get the full reports?

@easy1090
Copy link
Contributor

easy1090 commented Sep 1, 2024

@kwonoj This case need use lite mode.There is only a lack of source code and bundle product code, and there is no lack of functions.https://rsdoctor.dev/config/options/options#mode

@kwonoj
Copy link
Contributor Author

kwonoj commented Sep 2, 2024

lack of source code and bundle product code,

I hoped to get a full analytics, but not an immediate concern. Going to close issue for now - however if the symptom with larget output can be fixed it'd be great.

@kwonoj kwonoj closed this as completed Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants