kamilkisiela / apollo-angular

A fully-featured, production ready caching GraphQL client for Angular and every GraphQL server 🎁
https://apollo-angular.com
MIT License
1.5k stars 309 forks source link

in project angular ionic Meet me Error, Cannot find module 'react' or its corresponding type declaratio #1762

Closed FathiGuemri closed 2 years ago

FathiGuemri commented 2 years ago

Describe the bug

in project angular ionic When calling library @apoollo/client/link/context I got this Error

Error: node_modules/@apollo/client/react/context/ApolloConsumer.d.ts:1:24 - error TS2307: Cannot find module 'react' or its corresponding type declarations. [ng] [ng] 1 import * as React from 'react'; To Reproduce Steps to reproduce the behavior:

Expected behavior

Environment:

- @angular/cli@~13.0.1
- @angular/core@~13.0.0
- @apollo/client@3.5.9
- apollo-angular@3.0.0
- graphql@16.3.0
- typescript@~4.4.4

Additional context