Closed jakeleventhal closed 6 days ago
@tofsjonas if you use "moduleResolution": "bundler" in .tsconfig.json you won't have to add file extensions https://www.typescriptlang.org/tsconfig/#moduleResolution
"moduleResolution": "bundler"
.tsconfig.json
I've gotten that far updating my project, now trying to get Jest working with ESM.. So I agree this brings a challenge for some established projects.
Originally posted by @mrbfrank in https://github.com/jasonkuhrt/graphql-request/issues/880#issuecomment-2130210582
After setting bundler module resolution, still getting issues when running npx jest
npx jest
@tofsjonas if you use
"moduleResolution": "bundler"
in.tsconfig.json
you won't have to add file extensions https://www.typescriptlang.org/tsconfig/#moduleResolutionI've gotten that far updating my project, now trying to get Jest working with ESM.. So I agree this brings a challenge for some established projects.
Originally posted by @mrbfrank in https://github.com/jasonkuhrt/graphql-request/issues/880#issuecomment-2130210582
After setting bundler module resolution, still getting issues when running
npx jest