RunJS
RunJS copied to clipboard
A package without `main` field in `package.json` cannot be loaded
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