Код: Выделить всё
typescript-react-apolloКод: Выделить всё
Export skipToken doesn't exist in target module
1 | import { gql } from '@apollo/client';
> 2 | import * as Apollo from '@apollo/client';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 | export type Maybe = T | null;
4 | export type InputMaybe = Maybe;
The export skipToken was not found in module .../@apollo/client/core/index.js [app-client] (ecmascript).
Код: Выделить всё
import * as Apollo from '@apollo/client/react';
const { skipToken } = Apollo;
< /code>
Вот мой codegen config: < /p>
overwrite: true
schema: 'http://localhost:5000/graphql'
documents: 'src/graphql/**/*.graphql'
generates:
src/graphql/generated/graphql.ts:
plugins:
- 'typescript'
- 'typescript-operations'
- 'typescript-react-apollo'
config:
withHooks: true
withComponent: false
withHOC: false
skipTypename: false
# Tried disabling but didn't help:
# withSkipToken: false
# reactApolloVersion: 3
Подробнее здесь: https://stackoverflow.com/questions/797 ... rt-incorre
Мобильная версия