I just clone my project on Ubuntu machine and did yarn install and then yarn start and this giving me above error. However on my Windows machine it is working fine.
I'm using "apollo-client": "^2.6.10" version.
I just clone my project on Ubuntu machine and did yarn install and then yarn start and this giving me above error. However on my Windows machine it is working fine.
I'm using "apollo-client": "^2.6.10" version.
Try the following steps inside your project folder:
rm -rf node_modules yarn.lockpackage.json , "apollo-client": "~2.6.10"yarn install && yarn startIn our package.json, when we use ^ (in the case here ^2.6.10), it automatically picks a higher version and it might not be compatible with other packages.
So when this happens, make sure to use the exact version number with ~ as the prefix (in the case here ~2.6.10).