I am working with create-react-app + typescript + eslint application and during build have such error:
Line 1:8: \'React\' was used before it was defined @t
deleting the node_modules folder and reinstalling it worked for me. I'm using yarn as package manager.
node_modules
yarn