RunJS icon indicating copy to clipboard operation
RunJS copied to clipboard

A package without `main` field in `package.json` cannot be loaded

Open kapooostin opened this issue 1 year ago • 2 comments

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 avatar Apr 05 '24 13:04 kapooostin

This will be fixed in the next release 👍

lukehaas avatar Apr 05 '24 14:04 lukehaas

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

lukehaas avatar Apr 27 '24 10:04 lukehaas