-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation error caused by "circular reference" (@mui/core, @mui/core/ModalUnstyled) #28628
Comments
Hi @TongChia. I tried to reproduce the error by following the steps you provided, but I got another error: |
OK, thanks. I was able to reproduce it, I'll investigate what may be the cause of this. |
The @eps1lon would you mind taking a look at this? Perhaps you'll have a clue what's going on. |
I've been investigating a little bit in this. I noticed the following Inspecting the compiled module I see following exports:
It looks to me like an issue with snowpack and its rollup configuration. I also found FredKSchott/snowpack#3206 which looks very similar. |
It reminds me the ESM issue that Vite had: #21377 |
Current Behavior 馃槸
try to build with snowpack (esbuild)
got error:
The requested module '/_snowpack/pkg/@mui.core.ModalUnstyled.v5.0.0-alpha.47.js' does not provide an export named 'SliderMark'
bug describe
Expected Behavior 馃
Steps to Reproduce 馃暪
Steps:
npx create-snowpack-app --template @snowpack/app-template-preact-typescript --use-yarn
yarn add @mui/material @emotion/react @emotion/styled
import { Typography } from "@mui/material"
yarn start
Context 馃敠
temporary solution
Your Environment 馃寧
`npx @mui/envinfo`
The text was updated successfully, but these errors were encountered: