1

I'm using create-react-app with typescript. I don't want typescript to stop the javascript execution when a typescript error is caught, I want to get warned in the console but I don't the UI to be interrupted.

is it possible to configure tsconfig in such a way?

2
  • I think you must fix error. Not dismiss it. Commented May 10, 2021 at 23:23
  • @KevinM.Mansour I think I'm a big boy. I can decide when to dismiss error. Commented May 10, 2021 at 23:26

1 Answer 1

2

To do this with create-react-app, you can edit your .env file to have the following:

TSC_COMPILE_ON_ERROR=true

For information on advanced configuration of create-react app, see this page.

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

1 Comment

great!! thanks! will accept this after the time limit!

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.