Cannot find name 'fetch'
If you are using Typescript 2.8.0+ fetch is included in the standard lib.
You will need to use "--lib dom" or add "dom" in your tsconfig.json:
- old ❌
{ "compilerOptions": { "lib": ["dom"], }}
- new ✅
{ "compilerOptions": { "lib": ["DOM"], }}
You most likely will need the typescript typings for fetch, just try
npm install --save-dev @types/whatwg-fetch
should sort out the error your getting.