Middleware and an Upload scalar to add support for GraphQL multipart requests (file uploads via queries and mutations) to various Node.js GraphQL servers.
I have gone through the readme and I am still getting errors while building. I was wondering if you could point me to a resolution or file as an issue.
$ tsc && cp -r ./static ./dist/
node_modules/graphql-upload/processRequest.mjs:384:7 - error TS2694: Namespace '"/server/node_modules/fs-capacitor/dist/index"' has no exported member 'ReadStreamOptions'.
384 * .ReadStreamOptions["encoding"]} [options.encoding] Specify an encoding for
~~~~~~~~~~~~~~~~~
node_modules/graphql-upload/processRequest.mjs:393:7 - error TS2694: Namespace '"/server/node_modules/fs-capacitor/dist/index"' has no exported member 'ReadStreamOptions'.
393 * .ReadStreamOptions["highWaterMark"]} [options.highWaterMark] Maximum number
~~~~~~~~~~~~~~~~~
Found 2 errors in the same file, starting at: node_modules/graphql-upload/processRequest.mjs:384
"moduleResolution": "node" is the problem; either delete it and let "module": "node16" set the module resolution mode or explicitly set it to "moduleResolution": "node16". See:
I have gone through the readme and I am still getting errors while building. I was wondering if you could point me to a resolution or file as an issue.
tsconfig.json
Output