4

I want to create a typescript react app by using this tool Microsoft/TypeScript-React-Starter. I have followed the instructions from the github page:

1. npm install -g create-react-app

2. create-react-app my-app --scripts-version=react-scripts-ts

3. cd my-app

4. npm start

Then I get this error:

error TS2304: Cannot find name 'process'

I have uninstalled create-react-app and reinstalled it. The error persists. By the way yesterday I created a test program with the same tool and it worked. When I run this test program, it works as expected.

But whatever application I create today with the tool throws the above exception. I think my installation is corrupted some how.

Any help would be greatly appreciated.

1
  • This certainly has to do with the new 2.4 release of typescript which happened today. I upgraded typescript and see the same error. Commented Jun 27, 2017 at 22:12

1 Answer 1

1

Going back to typescript version 2.3.4 worked for me.

I used:

npm install [email protected]

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.