Closed nekmart closed 1 year ago
As documented, this package exports ESM:
https://github.com/jaydenseric/graphql-upload/tree/v16.0.2#exports
A CJS module can't require
an ESM module, but it can import an ESM module using a dynamic import
call:
https://nodejs.org/api/esm.html#interoperability-with-commonjs
It appears you are writing ESM in your source code, but that is not what runs. You have some sort of transpilation setup in your project that is converting that ESM to CJS, which is what your application actually runs as.
You should update your tooling to build ESM, and run ESM. That way you can import CJS or ESM dependencies without problems at runtime.
Hello, I want to use
graphql upload
package in nestjs. But I am facing some error-Here is my code-
When I start my server I am getting this error like this-
How can I solve it.