createMuiTheme getting "Object literal may only specify known properties"
See original GitHub issueProviding custom variables to createMuiTheme
gives the error “Object literal may only specify known properties”.
"@material-ui/core": "^4.9.9",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "^4.0.0-alpha.48",
"@material-ui/pickers": "^3.2.10",
"@material-ui/styles": "^4.9.6",
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:9 (9 by maintainers)
Top Results From Across the Web
createMuiTheme getting "Object literal may only specify ...
Providing custom variables to createMuiTheme gives the error "Object literal may only specify known properties".
Read more >Why am I getting an error "Object literal may only specify ...
As of TypeScript 1.6, properties in object literals that do not have a corresponding property in the type they're being assigned to are...
Read more >Object literal may only specify known properties in TS
The "Object literal may only specify known properties" error occurs when a property in an object literal does not exist in the object's...
Read more >Extend Material-UI theme in TypeScript - In Plain English
Object literal may only specify known properties, and 'success' does not exist in type 'PaletteOptions'. It means that because Material-UI ...
Read more >can't resolve '@material-ui/core/styles/createmuitheme'
Providing custom variables to createMuiTheme gives the error "Object literal may only specify known properties". "@material-ui/core": "^4.9 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@eps1lon Thanks for reopening.
@oliviertassinari For this particular case or in general? For this case I’d probably add something like this with a link to customization-of-theme to find out more:
If that helps?
Your issue has been closed because it does not conform to our issue requirements.
For how-to questions and other non-issues, please use Spectrum.chat or StackOverflow instead of Github issues. There is a StackOverflow tag called “material-ui” that you can use to tag your questions.