-
Notifications
You must be signed in to change notification settings - Fork 916
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
🐛 BUG: not work with @mui/material ( @material-ui v5 ) #3724
Comments
I also still have this problem? Why it's not working??
|
I think this is caused by "circular references" // import ModalUnstyled, { modalUnstyledClasses } from '@mui/core/ModalUnstyled';
import { ModalUnstyled, modalUnstyledClasses } from '@mui/core'; and // export * from '@mui/core/ModalUnstyled';
export { ModalUnstyled, ModalManager, modalUnstyledClasses, getModalUtilityClass } from '@mui/core'; and clean cache rm -rf node_modules/.cache |
I can confirm @TongChia worked for me on 3.8.8. |
Simple way to solve the problem : // import Modal from '@mui/material/Modal';
import Modal from '@mui/material/Modal/Modal'; // skip index 😄 snowpack version 3.8.8 |
I had a similar issue here with Snowpack 3.8.8 the error I was getting was:
But as it was showing up when importing Not an ideal solution and I noticed a bit of visual degradation using the component that way, but one can always manually tweak a few styles or include missing classes directly. |
Quick checklist
What package manager are you using?
yarn
What operating system are you using?
macOS, Linux
Describe the bug
a strange error when snowpack dev whith @mui/material (or @material-ui/core v5)
my app.tsx like:
i got error message
The requested module '/_snowpack/pkg/@mui.core.ModalUnstyled.v5.0.0-alpha.47.js' does not provide an export named 'SliderMark'
check this file
node_modules/.cache/snowpack/build/@mui/material@5.0.0/@mui/material.js
MUI components export from
'@mui/core/ModalUnstyled'
😱is that a esbuild bug ?
i can fix it with
Steps to reproduce
npx create-snowpack-app
using template app-template-preact-typescriptyarn add @mui/material @emotion/react @emotion/styled
import { Typography } from "@mui/material"
yarn start
The requested module '/_snowpack/pkg/@mui.core.ModalUnstyled.v5.0.0-alpha.47.js' does not provide an export named 'SliderMark'
Link to minimal reproducible example (optional)
No response
The text was updated successfully, but these errors were encountered: