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

A package without main field in package.json cannot be loaded #618

Closed
kapooostin opened this issue Apr 5, 2024 · 2 comments
Closed

A package without main field in package.json cannot be loaded #618

kapooostin opened this issue Apr 5, 2024 · 2 comments

Comments

@kapooostin
Copy link

kapooostin commented Apr 5, 2024

I stumbled upon the problem with a package @humanfs/node. It uses modern exports field instead of main in package.json.

And RunJS fails to load it:

Error: No "exports" main defined in /Users/USER/Library/Application Support/runjs/node_modules/@humanfs/node/package.json
@kapooostin kapooostin changed the title A package without main field in packahe.json cannot be loaded A package without main field in package.json cannot be loaded Apr 5, 2024
@lukehaas
Copy link
Owner

lukehaas commented Apr 5, 2024

This will be fixed in the next release 👍

@lukehaas
Copy link
Owner

@kapooostin this looks like it's working now in the latest release. Version 2.12.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants