Skip to content

Commit 64c52e5

Browse files
authored
add globalTypes warning (#218)
1 parent 430ace2 commit 64c52e5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

documentation/docs/apollo-graphql.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,13 @@ All this work will be handled automatically by CLI, so you don’t need to do an
157157

158158
:::
159159

160+
:::warning
161+
162+
`Apollo GraphQL` plugin currently exludes `__generated__/globalTypes.ts` at `tsconfig.json`. Typescript doesn't accept empty global files when `isolatedModules` is set to `true` which is mandatory for next.js projects. If you're going to have non empty `globalTypes.ts`, you may consider removing it from exclude.
163+
[There is currently an issue](https://github.com/apollographql/apollo-tooling/issues/2080) and [a related pr](https://github.com/apollographql/apollo-tooling/pull/2163) to not produce `globalTypes.ts` if it's empty.
164+
165+
:::
166+
160167

161168
## Adding Apollo GraphQL to your project later
162169

0 commit comments

Comments
 (0)