privatenumber / pkg-size.dev

📦🔍 Find the true size of an npm package
https://pkg-size.dev
688 stars 6 forks source link

Bug: Error when check @postlight/parser package size #14

Open mefengl opened 1 year ago

mefengl commented 1 year ago

https://pkg-size.dev/@postlight/parser

image

privatenumber commented 1 year ago

It looks like the issue is occurring because the package.json file is referencing GitHub dependencies, which requires the use of git for resolution. Here's the link to the specific line in the package.json file: GitHub Package.json Line.

Unfortunately, it looks like WebContainers doesn't currently support the git binary, which is likely causing the problem.

I also want to mention that it's not recommended to reference GitHub branches or tags as dependencies because they can be changed or deleted, leading to installation issues for users. Additionally, this approach could expose users to potential security risks if malicious code is swapped in without requiring a version upgrade.

mefengl commented 1 year ago

Got it, thanks for the explanation