8

I want typescript errors to appear as warnings, but not crash my dev server. I was able to do so for eslint with setting .env file with ESLINT_NO_DEV_ERRORS=true.

Is there a typescript equivalent?

It's really counter-productive for the prototyping phase.

This SO answer suggests:

{
  "compilerOptions": {
    ...
    strict: false
  }
)

But this also configures many other things (i.e. no no implicit any)

Thanks!

2

1 Answer 1

8

Set the enviroment variable TSC_COMPILE_ON_ERROR=true.

More

You can find this and other options here : https://create-react-app.dev/docs/advanced-configuration/

Note: As of 2022-02-20 this is not only for development, but also for production.

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.