[SOLVED] Extend material ui theme options using module augmentation not working with TypeText

Issue

Here is a codesandbox to reproduce the issue.
https://codesandbox.io/s/thirsty-sun-0zyb3?file=/src/newTheme.ts:0-401

The TypeText is not being accepted, but the SimplePaletteColorOptions is working. It’s the same thing, I don’t understand where I went wrong 😅

Solution

There was a problem with export from mui/styles. It was resolved here. So you just need to update @mui/material

Answered By – jellySWATy

Answer Checked By – Senaida (BugsFixing Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *