Support for the experimental syntax \'optionalChaining\' isn\'t currently enabled
I was getting the above error. I followed this post and
Create-React-App uses babel to transpile the TypeScript so it isn't using your npm installed version of TypeScript. Version 3.3.0 of react-scripts supports TypeScript 3.7. You can install it and use it with:
yarn add react-scripts@3.3.0
-or-
npm install -s react-scripts@3.3.0