I am using typescript version 2.3.4 in my app . I am getting the above error in server.d.ts file in react-apollo node modules.kindly patch this in your package.As I am unable to use it.I am following versions for my App
typescript version 2.3.4
"react-apollo": "^1.4.15",
I solved this issue by installing @types/react Im new to TS though so that may be incorrect.
This issue has been automatically labled because it has not had recent activity. If you have not received a response from anyone, please mention the repository maintainer (most likely @jbaxleyiii). It will be closed if no further activity occurs. Thank you for your contributions to React Apollo!
One reason could be because our @types are in devDependencies, and they should be in dependencies if we want downstream projects get the same transitive @types requirements.
I've found it is not customary to include @types modules in the dependencies from looking at several other projects. If you are using react+typescript in your project you will need to add @types/react.
Most helpful comment
I've found it is not customary to include
@typesmodules in thedependenciesfrom looking at several other projects. If you are using react+typescript in your project you will need to add@types/react.