-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs] CodeSandbox demo is throwing an error #31149
Comments
Same here, and I was checking the snack bar demo, and somehow it just doesn't work today while it worked yesterday😂 Anyway, many thanks to @sscotth for your solution, it worked now after rolling back to v11.6👍 |
For temporary solution change Please check this: https://codesandbox.io/s/buttonappbar-material-demo-forked-fg0tr9?file=/package.json |
This really works thanks to you my laptop survived |
This didn't work for me: "dependencies": {
...
"@emotion/react": "^11.8.1",
"@emotion/styled": "11.6.0",
"@mui/material": "^5.4.2",
... {
"name": "@emotion/styled",
"version": "11.6.0",
"description": "styled API for emotion",
"main": "dist/emotion-styled.cjs.js",
"module": "dist/emotion-styled.esm.js",
"types": "types/index.d.ts",
"license": "MIT",
... tried rolling back emotion/react as well and no luck update -- problem was chakra provider -- my app is converting to MUI and removing the provider at the top of the dom tree solved it |
All the Codesandbox of X have the same issue |
I guess we don't have too much to do here, unless temporary downgrading |
Note that this alternative still works: I recall seeing another instance of this cache issue with codesandbox in #16979. In our case, it looks like a bug with Codesandbox's cache. Will see codesandbox/codesandbox-client#6484. |
It's working again. https://codesandbox.io/s/on9qjr?file=/demo.tsx I'm closing. |
Duplicates
Latest version
Current behavior 😯
Browsing the official documentation, card section:
https://mui.com/components/cards/
Opening the Complex interaction example official codesandbox (shrimp and chorizo paella):
https://codesandbox.io/s/qf542i?file=/demo.js
The example is not running as expected, instead a TypeScript error is thrown:
TypeError
(0 , $csb___emotion_utils.registerStyles) is not a function
I have tried to refresh to check if it was an issue of codesanbox, but the error persists.
Expected behavior 🤔
It should run the example with no issues and display the card as usual.
Steps to reproduce 🕹
Steps:
Context 🔦
Just browsing the official documentation, this could be an issue if somebody just wants to run the example and learn from it (stackblitz demo works)
Your environment 🌎
Official Codesanbox
The text was updated successfully, but these errors were encountered: