You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steps:
1.I'm upgrading MUI from v5 to v6.1.1
2.Write a test page,for the example:AppBar position="static">test </AppBar
3.there is an error about AppBar element
theme.applyStyles is not a function
Current behavior
Internal error: TypeError: theme.applyStyles is not a function
at eval (./node_modules/@mui/material/AppBar/AppBar.js:136:30)
at eval (./node_modules/@mui/material/utils/memoTheme.js:20:21)
at processStyle (./node_modules/@mui/system/createStyled/createStyled.js:49:55)
at eval (./node_modules/@mui/system/createStyled/createStyled.js:162:25)
at handleInterpolation (./node_modules/@emotion/serialize/dist/emotion-serialize.development.esm.js:154:24)
at serializeStyles (./node_modules/@emotion/serialize/dist/emotion-serialize.development.esm.js:285:15)
at eval (./node_modules/@emotion/styled/base/dist/emotion-styled-base.development.esm.js:227:91)
at eval (./node_modules/@emotion/react/dist/emotion-element-ba80abe0.develop
Expected behavior
Display the test page normally
Context
No response
Your environment
"@mui/icons-material": "6.1.1",
"@mui/material": "6.1.1",
"@mui/material-nextjs": "6.1.1",
"@mui/material-pigment-css": "6.1.1",
"@material-ui/core": "^5.0.0-beta.5",
"@material-ui/icons": "^4.11.3", Search keywords: theme.applyStyles is not a function
The text was updated successfully, but these errors were encountered:
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.
Note
We value your feedback @15010133689! How was your experience with our support team?
We'd love to hear your thoughts in this brief Support Satisfaction survey. Your insights help us improve!
"@material-ui/core": "^5.0.0-beta.5",Delete this reference. What I originally used in my code was import {createTheme, ThemeProvider} from "@material-ui/core";change this to import {createTheme, ThemeProvider} from "@mui/material";
Steps to reproduce
Link to live example: (required)
Steps:
1.I'm upgrading MUI from v5 to v6.1.1
2.Write a test page,for the example:AppBar position="static">test </AppBar
3.there is an error about AppBar element
theme.applyStyles is not a function
Current behavior
Internal error: TypeError: theme.applyStyles is not a function
at eval (./node_modules/@mui/material/AppBar/AppBar.js:136:30)
at eval (./node_modules/@mui/material/utils/memoTheme.js:20:21)
at processStyle (./node_modules/@mui/system/createStyled/createStyled.js:49:55)
at eval (./node_modules/@mui/system/createStyled/createStyled.js:162:25)
at handleInterpolation (./node_modules/@emotion/serialize/dist/emotion-serialize.development.esm.js:154:24)
at serializeStyles (./node_modules/@emotion/serialize/dist/emotion-serialize.development.esm.js:285:15)
at eval (./node_modules/@emotion/styled/base/dist/emotion-styled-base.development.esm.js:227:91)
at eval (./node_modules/@emotion/react/dist/emotion-element-ba80abe0.develop
Expected behavior
Display the test page normally
Context
No response
Your environment
"@mui/icons-material": "6.1.1",
"@mui/material": "6.1.1",
"@mui/material-nextjs": "6.1.1",
"@mui/material-pigment-css": "6.1.1",
"@material-ui/core": "^5.0.0-beta.5",
"@material-ui/icons": "^4.11.3",
Search keywords: theme.applyStyles is not a function
The text was updated successfully, but these errors were encountered: