-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Directory import is not supported (internal MUI modules) 2.0.0-pre.3 #7314
Comments
@telcy is thie for a new project? or are you migrating an existing project to v2? If migrating, what did you have your |
exports seem to be an issue as well
Repro |
As a workaround, can you use |
Related to mui/material-ui#30671 |
I am migrating a project but do have the same issue with fresh setups (see minimal repro above).
serverModuelFormat was set to |
Yea I think you'll want to keep Looks like you might be able to use named imports from MUI with ESM as a workaround |
Thanks for the prompt feedback. Seems using e.g.
|
Closing as this in inactionable in Remix until MUI provides better support for ESM |
Can I ask what the actual problem is? I am having the same issue with certain other packages. |
What version of Remix are you using?
2.0.0-pre.3
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
(I will try to add a repro later)
Expected Behavior
Directory imports should be handled by Remix. I am able to add
/index.js
to my own imports but I am unable to add/index.js
to MUI internal imports.Actual Behavior
The text was updated successfully, but these errors were encountered: