Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Errors prevent app from running at all #71

Open
PaulJuliusMartinez opened this issue Oct 8, 2017 · 1 comment
Open

Errors prevent app from running at all #71

PaulJuliusMartinez opened this issue Oct 8, 2017 · 1 comment

Comments

@PaulJuliusMartinez
Copy link

PaulJuliusMartinez commented Oct 8, 2017

A key feature of TypeScript is that it still emits output, even when there are type errors. This allows code to still be run even in the presence of type errors. However, if I add let str: string = 1; to src/index.tsx in a brand new app, I only see the "Failed to compile" message in my browser.

Is there anyway I can get around this behavior? I'm perfectly content to only see the compilation errors in my console.

@Flux159
Copy link

Flux159 commented Feb 4, 2018

I was having this same issue when using react-scripts-ts, I wrote a comment in the other repo about this:

wmonk/create-react-app-typescript#171

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants