TS2339: Property theme does not exist on type ThemeArg
trying to use callback themes
#235
Labels
customization: theme
Centered around the theming features
package: system
Specific to @mui/system
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
Steps to reproduce
TS2339: Property theme does not exist on type ThemeArg
TS error is seen while trying to use the theme callback variables as stated in readme document using ViteSteps to Reproduce:
vite.config.ts
:Box/index.tsx
) and create a a Base component using the styled API and a callback function with theme as recommended in the mentioned README documentTS2339: Property theme does not exist on type ThemeArg
error is seen in the editor and while trying to build the library by usingyarn build
in the vite env:Current behavior
TS2339: Property theme does not exist on type ThemeArg error is seen during development & build. If the
// @ts-expect-error comment
comment is added, then the compiler and the build allows to continue and access the theme variablesExpected behavior
No errors should be seen
Context
No response
Your environment
npx @mui/envinfo
tsconfig.json
Search keywords: theme ThemeArg callback
The text was updated successfully, but these errors were encountered: