Closed kamalkech closed 1 year ago
What makes you think you should be able to import like that?
because before i using old version / 16.0.0 and it s work, the idea is in nestjs app i want to enable upload file + graphql
Firstly, if you were using an old version, and you update major versions, look at the release notes about the breaking changes:
https://github.com/jaydenseric/graphql-upload/releases
Changes to exports are documented there.
The current exports are documented here:
https://github.com/jaydenseric/graphql-upload#exports
And release notes and documentation aside, you can just look at the exports and see what can be imported:
yes i already check the documentation, so i need to check again how can implement this with graphql and nestjs, but current i need to downgrand to old version
"graphql-upload": "^16.0.2", "@types/graphql-upload": "^16.0.0",
import { graphqlUploadExpress } from 'graphql-upload';
Module '"graphql-upload"' has no exported member 'graphqlUploadExpress'