-
-
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
[system] Import error when using Material UI styles with Remix v2 #42544
Comments
Please provide a reproduction using a GitHub repository or a live example on CodeSandbox or StackBlitz. Did you check this Stack Overflow thread: https://stackoverflow.com/questions/64453859/directory-import-is-not-supported-resolving-es-modules-with-node-js? |
This should be possible after we release esm support. @DiegoAndai will have more answers. Right now, we are blocked on some issues from Next.js. |
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. |
@DiegoAndai Hi! How long do you think is it going to take for you to release the esm support? Thanks! |
Hi! We tried to implement it for v6, but it was not possible due to the Next.js issue mentioned: vercel/next.js#65056. We're currently waiting for a response from the Next.js team, so sadly I cannot provide an estimated date. We'll try to do it ASAP, it's a priority for us. Marked as on hold, blocked by: #30671 |
@DiegoAndai |
@DiegoAndai Hi! FYI: this is the issue that I am currently facing:
And it is throwing the following error:
I have tried all the suggestions like this one: Thanks! |
@titanve you should use If not, may I ask you to share your remix config here? Thanks 😊 |
Hi @DiegoAndai I haven't installed vite yet. Should I install it as part of the migration process? I think is not necessary, is it? Thanks! |
Hey @titanve! Remix uses Vite, so you shouldn't have to install it separately; it should already be installed. You should have a config file called serverModuleFormat: 'cjs', (besides your other config options). Let me know if that works 😊. Our example of a remix app might be a good guide for your app's setup: https://github.com/mui/material-ui/tree/next/examples/material-ui-remix-ts |
@DiegoAndai hi! Sorry for the late reply! This is my
I got this error:
I have this in my
|
I googled to come here with the same error and I hope this context will help someone I didn't add
|
@titanve, could you share your project so I can debug it on my side? For example, upload it to github and share the link. This would be very helpful and speed up the process. |
@DiegoAndai Hi! I upgraded to version
And now I am getting the following error:
|
Hello, I'm upgrading my remix application from version 1 to version 2 and I am getting this error:
I haven't found any possible solution. What should I do?
This is my
package.json
file:Search keywords:
The text was updated successfully, but these errors were encountered: