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

throw new ERR_PACKAGE_PATH_NOT_EXPORTED(basePath, mappingKey) #254

Closed nikunj321 closed 3 years ago

nikunj321 commented 3 years ago

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './public/GraphQLUpload.js' is not defined by "exports" in A:\ksproblem\my-app\node_modules\graphql-upload\package.json

jaydenseric commented 3 years ago

Update your dependencies, if you are using the current graphql-upload version that error wouldn't happen.

jaydenseric commented 3 years ago

Also, make sure your Node.js or bundler version is recent enough to support package exports field subpath patterns:

https://github.com/jaydenseric/graphql-upload/blob/bdb5f808e0d514c28c0f59c1abd71680aba29bae/package.json#L40

nikunj321 commented 3 years ago

thank you.