Comments (1)
I'm sorry but I don't think I will be able to help much with this because it involves debugging your project and its dependencies. If I could offer an obvious solution from the clues you've provided I would; but nothing jumps out at me.
If you have the correct project setup you should be able to get the latest version of graphql-upload
working fine in a TypeScript project; I do so successfully at work in our project.
I suspect that whatever dependency you are using to build your schema is generating CJS modules instead of ESM, and they are attempting to require the GraphQLUpload
scalar which is ESM, which is an invalid thing to do. You mentioned TypeGraphQL; so the logical place to start is to check it's working correctly with ESM. It looks like they have bugs to be fixed on their end:
If you figure out a solution, feel free to report it here in case it helps anyone googling a similar issue.
from graphql-upload.
Related Issues (20)
- How can I upload file on Next.js HOT 1
- Apollo Server v4 with Lambda HOT 1
- ERROR [ExceptionsHandler] Multipart: Boundary not found - Digital Ocean - AppPlatform HOT 1
- FileUpload - where is fileName, mimetype and createReadStream ? HOT 8
- Error [ERR_REQUIRE_ESM]: require() of ES Module not supported HOT 8
- Hard to find FileUpload interface. HOT 1
- Error: No "exports" main defined in /Volumes/Personal/code-work/node-projects/office/pf-node-backend/node_modules/graphql-upload/package.json HOT 1
- Why misorder of operations and map will cause error thrown? HOT 3
- export graphqlUploadExpress HOT 4
- Invalid object path for the 'map' multipart field entry key '0' array index '0' HOT 1
- in my mutation i have two arguments which have Upload type and both return null HOT 2
- ERR_PACKAGE_PATH_NOT_EXPORTED HOT 1
- Error: Expected undefined to be a GraphQL nullable type.
- Apollo Server v4 issue - BadRequestError: POST body missing, invalid Content-Type, or JSON object has no keys. HOT 2
- Cannot find type definition file for 'fs-capacitor'. HOT 1
- Graphql File Upload NestJS issue HOT 3
- upload multiple images has error HOT 1
- multipart fields HOT 3
- Misordered multipart fields; files should follow ‘map’ HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphql-upload.