question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 5 years ago
  • Reactions:13
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
giantryansaulcommented, May 31, 2018

We are getting the same error. Only happens on Typescript 2.9.x, does not happen on 2.8.x.

5reactions
Nuffleecommented, May 31, 2018

Same exact issue here. @giantryansaul

Read more comments on GitHub >

github_iconTop Results From Across the Web

create-react-app-with-typescript: TS2344: 'Type Removals ...
TS2344 : Type '"classes" | Removals' does not satisfy the constraint 'string'. Type 'Removals' is not assignable to type 'string'. Type 'keyof C' ......
Read more >
typescript - Type 'T[K]' does not satisfy the constraint 'string
Typescript code (throwing type error). I am trying to convert that function to Typescript, but stuck at declaring types for lookup variable.
Read more >
type 'matdatepickercontrol<unknown>' does not satisfy the ...
Material DatePicker error (Type MatDatepicker is not assignable to type. ... Getting TS2344: Type 'T' does not satisfy the constraint 'Object'. from Angular ......
Read more >
Why is my Pick<> failing with "Type does not satisfy ... - Reddit
I have a file called ionIcons.ts. It contains a list of var delcarations. export declare var accessibility: string; export declare var…
Read more >
Type argument '<typeargumentname>' does not satisfy the ...
Learn more about: Type argument '' does not satisfy the 'Class' constraint for type parameter ''
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found