Closed
Description
Describe the bug
I've noticed that when using graphql-modules
in a TypeScript project that defines moduleResolution: "bundler"
:
TypeScript cannot resolve the type definitions:
That's because in the generated dist/package.json
, the types
field is not present in the exports
condition:

I won't write all the details here because I saw you're using a tool called bob
to generate the final dist, and the problem is there.
I just opened this issue to keep it as a reminder so that when this problem is fixed on the bob
's side, you can upgrade it and generate a release.
To Reproduce
- Clone this repository: https://github.com/devraul/graphql-modules-type-problem
- Follow the README instructions
Expected behavior
Working without a problem in TS configs where it defines the moduleResolution
equals bundler
Environment:
- OS: macOS
graphql-modules
: 2.3.0- NodeJS: 20.10.0
Additional context
Metadata
Metadata
Assignees
Labels
No labels