Skip to content
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

[joy-ui] Integrate Joy UI with Remix v2 #39641

Open
2 tasks done
mbarni99 opened this issue Oct 28, 2023 · 4 comments
Open
2 tasks done

[joy-ui] Integrate Joy UI with Remix v2 #39641

mbarni99 opened this issue Oct 28, 2023 · 4 comments
Labels
docs Improvements or additions to the documentation examples Relating to /examples package: joy-ui Specific to @mui/joy ready to take Help wanted. Guidance available. There is a high chance the change will be accepted

Comments

@mbarni99
Copy link

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Summary 💡

I would like to see a page on the Joy UI 'Integrations' dropdown menu where there are detailed instructions on how to integrate Joy UI into an up-to-date Remix SSR application (with TypeScript, obviously).

Examples 🌈

image

Motivation 🔦

I switched from Vite-based React SPAs to server-side rendering. Tried both Next.js (from 13.4) and Remix (from v1.16 or something) and I believe Remix has renewed the way of developing React applications. It has an awesome DX and a growing ecosystem. I would like to continue using MUI (probably switching from Material UI to Joy UI on its production release), but I do not want crucial drawbacks because of the SSR. I have found, read and also implemented myself the material-ui-remix-ts example, but I had a really hard time integrating that one with other popular Remix-based libraries like remix-i18next because both libraries want developers to replace code parts in entry.client.tsx and entry.server.tsx. And neither do I want to spend days of figuring things out on lower levels to have them working together, because I do not feel competent enough to that task with confidence and on time yet.

@mbarni99 mbarni99 added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Oct 28, 2023
@mbarni99 mbarni99 changed the title Integrate Joy UI with Remix v2 [website][joy-ui] Integrate Joy UI with Remix v2 Oct 28, 2023
@samuelsycamore samuelsycamore added docs Improvements or additions to the documentation package: joy-ui Specific to @mui/joy examples Relating to /examples ready to take Help wanted. Guidance available. There is a high chance the change will be accepted and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Oct 28, 2023
@samuelsycamore
Copy link
Member

Thanks for the suggestion @mbarni99 ! I agree that it would be awesome to have a solid Joy UI + Remix example. That said, I don't think any of us maintainers have much experience with Remix, and we're all pretty short on bandwidth to tackle learning a new framework at the moment (as much as I'd love to). 😅 I've added the ready to take label here in the hope that some Remix pro will come around and take the lead on this! 🤞

@danilo-leal danilo-leal changed the title [website][joy-ui] Integrate Joy UI with Remix v2 [joy-ui] Integrate Joy UI with Remix v2 Oct 28, 2023
@alexserver
Copy link

I've been using remix for quite a while this year and I'm a big fan of mui library. It was one of the first UI libraries I used to build web apps.
The major problem I've found with using remix v2.2 is that remix enforces the usage of ES modules, adding type="module" to package.json, and when you want to import any component, you get an error because of this.
I've read that this is because ES6 modules still doesn't support import directories yet, but I don't understand, since every component starts with an index.ts file.
Has anyone else came across this error ?

@alexserver
Copy link

This is the problem with mui examples:
That every library they use they use the latest version, which is prone to big conflicts after all libraries will continue to evolve over time taking different directions after the point of the timeline this example was created!

  "dependencies": {
    "@emotion/cache": "latest",
    "@emotion/react": "latest",
    "@emotion/server": "latest",
    "@emotion/styled": "latest",
    "@mui/material": "latest",
    "@remix-run/css-bundle": "latest",
    "@remix-run/node": "latest",
    "@remix-run/react": "latest",
    "@remix-run/serve": "latest",
    "@remix-run/server-runtime": "latest",
    "react": "latest",
    "react-dom": "latest"
  },

@mogadanez
Copy link

latest example of https://github.com/mui/material-ui/tree/master/examples/material-ui-remix-ts
works fine itself, but still struggle to add support of i18next to it

sergiodxa/remix-i18next#181

I know that MUI probably working on full ESM support( #30671 )
but not sure how to close they are.

Anyone had luck to use remix-i18next and mui in same project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation examples Relating to /examples package: joy-ui Specific to @mui/joy ready to take Help wanted. Guidance available. There is a high chance the change will be accepted
Projects
None yet
Development

No branches or pull requests

4 participants