ERR_PACKAGE_PATH_NOT_EXPORTED
when package is called using import.meta.resolve
#150
Open
2 tasks done
Labels
bug
Something isn't working
Font Name (Geist Sans/Geist Mono):
Description of the Issue:
When providing this package's specifier to
import.meta.resolve
NodeJS throws aERR_PACKAGE_PATH_NOT_EXPORTED
errorSteps to Reproduce:
import.meta.resolve('geist')
Expected Behavior:
That the call to
import.meta.resolve
would return a path to the package's entrypoint, e.g. file:///path/to/node_modules/geist/dist/font.jsScreenshots:
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional Context:
The solution for this to define a default entry point in the exports map, which seems like just using the package's current
module
entry point valueThe text was updated successfully, but these errors were encountered: