-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
Box modules is broken #43242
Comments
It doesn't look like this bug report has enough info for one of us to reproduce it. |
Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information. |
I also get this error with Box and Vite: const defaultTheme = createTheme(); Box.js:9 |
I'm seeing the same error |
@slittlec @imakecodes if possible then create a new issue or share code here with help of https://codesandbox.io/ or just paste it here and ping mnajdova to reopen this issue post. for authorEdit:
Paste this into your app.jsx (vite + react with js) EDIT 2: upon further inspection the problem is with
Found this right before starting to beat my head on wall Solution for temporaryjust replace the |
Hey folks, I solved this issue modifying the imports from I'm using vite to serve, what are other infos important that could help to understand what is happening? |
same as #44055 (comment) I'd try if the new package structure of next MUI major fixes this issue. if you feel like experimenting, there may also be a workaround to alias the imports to the esm folder such as in #35233 (comment) |
Steps to reproduce
Link to live example: (required)
Steps:
Like this
src > components
import box 1 into box 2 and refresh the page manually (reenter url)
it gives off error in console that
this line is giving problem
```const defaultTheme = createTheme();``
Check with both FireFox and Chromium
Current behavior
Box modules shows error in this line:
const defaultTheme = createTheme();
invalid function
Expected behavior
It should run
Context
No response
Your environment
npx @mui/envinfo
Search keywords: box mui
The text was updated successfully, but these errors were encountered: