-
-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
EntryPointError: libp2p fails to build - exports map support missing? #639
Comments
I'm interested in this question too. I noticed the
But my own package fails:
|
I booted it up locally and messed around with it, and it looks like the root culprit is two issues.
pastelsky/package-build-stats@master...owenallenaz:package-build-stats:v5-attempt . Unfortunately the webpack changes are a bit out of my depth with the intent of the package and it's internals... |
bundlephobia now fails with the following error message : > EntryPointError > We could not guess a valid entry point for this package. Perhaps the author hasn't specified one in its package.json ? this might be the same issue : pastelsky/bundlephobia#639
For those still hitting this problem, I started using https://packagephobia.com instead, it supports modern packaging conventions so works with exports maps. |
The
libp2p
module does not include amain
field in it'spackage.json
, instead it uses an export map with a"."
property which is the default package entry point.When trying to look at bundle sizes for this module I see
EntryPointError: We could not guess a valid entry point for this package.
- does bundlephobia understand export maps or does it only support the "main" field?The text was updated successfully, but these errors were encountered: