jaydenseric / graphql-upload

Middleware and an Upload scalar to add support for GraphQL multipart requests (file uploads via queries and mutations) to various Node.js GraphQL servers.
https://npm.im/graphql-upload
MIT License
1.43k stars 131 forks source link

ERR_PACKAGE_PATH_NOT_EXPORTED #307

Closed PiTiLeZarD closed 2 years ago

PiTiLeZarD commented 2 years ago

Hi,

I just tried to use this library and get this error:

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /path/to/my/app/node_modules/graphql-upload/package.json

I've tried removing node_modules and reinstall it all, same same.

jaydenseric commented 2 years ago

Duplicates https://github.com/jaydenseric/graphql-upload/issues/305 .

You can see an explanation here:

https://github.com/jaydenseric/graphql-upload/issues/305#issuecomment-1134736158

PiTiLeZarD commented 2 years ago

Thanks for answering that fast, and thanks for all your work on these libraries.

If I may: I'm sure the choice is justified but as it's unconventional, it would benefit with a mention related to that effect in the main readme.

Changelogs are only important for people who follow all versions, I never used that library and started today, so I had no incentive to find answers in the changelog.

Either way thanks for the answer, I'll have another crack at this!