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

Error: No "exports" main defined in graphql-upload/package.json #309

Closed
strangeweb3guy opened this issue May 24, 2022 · 1 comment
Closed

Comments

@strangeweb3guy
Copy link

strangeweb3guy commented May 24, 2022

Have installed graphql-upload, do import import { graphqlUploadExpress } from 'graphql-upload';
And getting this error:
Error: No "exports" main defined in graphql-upload/package.json

Dependencies:

"graphql-upload": "^14.0.0",
"graphql": "15.8.0",
"graphql-request": "^4.2.0",
"graphql-tools": "^8.2.0",
"@nestjs/axios": "^0.0.7",
"@nestjs/common": "^8.4.1",
"@nestjs/config": "^1.1.5",
"@nestjs/core": "^8.4.1",
"@nestjs/graphql": "^9.1.2",
"@nestjs/platform-express": "^8.0.0",

The version of node: v16.10.0

@jaydenseric
Copy link
Owner

Duplicates #305 , see here for an explanation:

#305 (comment)

And here for what you need to do:

#305 (comment)

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