I am doing the react-native typescript setup which I ran
npx react-native init MyApp --template react-native-template-typescript
I installed typescript
npm install -g typescript
- 'npx --v' -> 6.14.15
- 'npm view react-native version' -> 0.67.2
- 'npm view typescript version' -> 4.5.5
- 'node -v' -> v12.22.9
and then immediately, I get errors from the template ->
node_modules/@types/node/globals.d.ts:47:11 - error TS2300: Duplicate identifier 'AbortController'.47 interface AbortController { ~~~~~~~~~~~~~~~ node_modules/@types/react-native/globals.d.ts:435:15 435 declare class AbortController { ~~~~~~~~~~~~~~~'AbortController' was also declared here.
Once I solve this my next question is having all developers use the same tool versions to avoid this dependency hell. The only one dealing with dep hell will be the person doing the upgrade. everyone else will magically get their tool and lib versions changed hopefully!!!