-
-
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
[ESM] Vite + vitest + @mui/material v5.11.0 - createPalette.js:1 seems to be an ES Module but shipped in a CommonJS package. #35773
Comments
Are you importing stuff directly from this file? I am asking because that is not supported. We allow imports up to level3, for e.g. If this is not the case, please share e reproduction repository where we can check the issue. |
We are not importing anything directly from this file. I am encountering the problem with this repository https://github.com/catenax-ng/product-item-relationship-service-frontend. |
I am experiencing a similar issue when trying to access I wanted to add a new control to Is it possible that we can export |
I also just received this error with vitest, but I have been trying The following change fixed it for me: // import Chip from "@mui/material-next/Chip";
import Chip from "@mui/material/Chip"; I'm not sure if there are other things that cause this, but I wanted to pass this on in case it helps someone. EDIT: adding
|
Is there any workaround for this? Trying to migrate to vite but ran into this. |
@sterlingdcs-damian did you find a solution? |
I'm running in the same issue trying to migrate from Jest to Vitest, any known workaround? |
When using [email protected] and [email protected] with @mui/material.
Starting with "@mui/material": "5.11.0",
I am getting the following error:
Following the advice from the error message does not fix the issue.
For the time being I reverted back to "@mui/material": "5.10.17" - the tests run without any issue.
Any advice on how to use the current version?
The text was updated successfully, but these errors were encountered: