You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using umi dev with typescript, it will watch and compile all typescript files on the fly. It will also use the local tsconfig.json. However it doesn't display any typescript type errors and warnings. Hence we need to run npx tsc --noEmit to see typescript errors.
On the other hand when using create-react-app my-app --typescript and then react-scripts start will monitor and display all typescript errors.
Proposal
When using umi with typescript, show all typescript compilation errors and warnings.
Background
When using
umi dev
with typescript, it will watch and compile all typescript files on the fly. It will also use the localtsconfig.json
. However it doesn't display any typescript type errors and warnings. Hence we need to runnpx tsc --noEmit
to see typescript errors.On the other hand when using
create-react-app my-app --typescript
and thenreact-scripts start
will monitor and display all typescript errors.Proposal
When using
umi
with typescript, show all typescript compilation errors and warnings.Additional context
I've created a Stackoverflow question to see if there is an easy solution for that: https://stackoverflow.com/questions/56119734/how-i-can-instrument-umijs-to-output-typescript-type-errors
Example project with typescript setup:
https://github.com/robert-zaremba/react-umi-antdpro-ts-bootstrap/
The text was updated successfully, but these errors were encountered: