create-react-app-with-typescript: TS2344: 'Type Removals | "classes"' does not satisfy constraint 'string'
See original GitHub issue- This is a v1.x issue (v0.x is no longer maintained).
- I have searched the issues of this repository and believe that this is not a duplicate.
Expected Behavior
Demo page should render without an error.
Current Behavior
On following instructions to clone (using curl command line provided in readme) the following error is shown in the browser:-
/Users/xxxxxx/create-react-app-with-typescript/node_modules/@material-ui/core/index.d.ts (12,3): Type '"classes" | Removals' does not satisfy the constraint 'string'. Type 'Removals' is not assignable to type 'string'. Type 'keyof C' is not assignable to type 'string'. Type 'string | number | symbol' is not assignable to type 'string'. Type 'number' is not assignable to type 'string'.
The package.json specifies ‘latest’ for all dependancies, and it seems that material-ui typings are not compatible with Typescript version 2.9.1. Changing the version to 2.8.1 fixes the issue.
Steps to Reproduce (for bugs)
Follow instructions on readme for create-react-app-with-typescript
Issue Analytics
- State:
- Created 5 years ago
- Reactions:13
- Comments:12 (4 by maintainers)
Top GitHub Comments
We are getting the same error. Only happens on Typescript 2.9.x, does not happen on 2.8.x.
Same exact issue here. @giantryansaul