Closed aoneahsan closed 1 year ago
Hi @aoneahsan , the error is because you can no longer import from a main module at "graphql-upload"
; you need to specify exactly the module you want to import. E.g:
import graphqlUploadExpress from "grpahql-upload/graphqlUploadExpress.mjs";
You can see all the modules you can import here:
https://github.com/jaydenseric/graphql-upload/tree/v16.0.2#exports
This is for optimal JavaScript module design.
These breaking changes about how modules can be imported have been documented in the changelog and GitHub releases for each of the major version you are upgrading past, including migration examples for each of the imports:
Error: No "exports" main defined in /Volumes/Personal/code-work/node-projects/office/pf-node-backend/node_modules/graphql-upload/package.json
I just updated the "graphql-upload" and other packages versions in my node project and now when I tried to run it it's giving this error
here is what my old package.json file was before this update
and here is what it looks like after update
the one thing which I wanted to do (and did) was to remove this ""preinstall": "npx npm-force-resolutions","
please let me know how I can resolve this error