pastelsky / bundlephobia

🏋️ Find out the cost of adding a new frontend dependency to your project
https://bundlephobia.com
MIT License
8.92k stars 221 forks source link

InstallError, EntryPointError: bundlephobia-shim-blocktx fails to show any details #744

Open coolaj86 opened 1 year ago

coolaj86 commented 1 year ago

Package name

The official package is @dashincubator/blocktx.

I've published several versions of various shims trying to get bundlephobia to be able to install and analyze the package

Entire (stringified) error that I see in my browser console

{"error":{"code":"InstallError","message":"Installing the packaged failed.","details":{}}}
{"error":{"code":"EntryPointError","message":"We could not guess a valid entry point for this package. Perhaps the author hasn't specified one in its package.json ?","details":{}}}

Additional Details

In order to support Node, Browsers, Bundlers, and tsc without requiring any transpiling to take place, we apply a few fairly standard techniques:

It appears that the JSDoc re-export prevents the package from installing at all. Removing that seems to get on to the EntryPointError.

It seems that having index.js transitively require blocktx.js causes entrypoint failure

Reproducing Locally?

If there's some way to use the CLI to run the same process that the webserver is running to find the error, I'm up for it.