Add support for Remix Vite #22613
Replies: 10 comments 25 replies
-
This is on our roadmap 🙂 It'll be addressed in due course |
Beta Was this translation helpful? Give feedback.
-
@Coly010 , Can I (+my team) help you with that? |
Beta Was this translation helpful? Give feedback.
-
has there been any traction on this yet? has anyone successfully migrated a fresh remix app according to the remix docs using a freshly scaffolded remix app from the nx plugin to the vite build one? ive spent too much time already wrestling with nx's architecture... |
Beta Was this translation helpful? Give feedback.
-
Is there any way to make this happen? Even manually? I've setup a vite app and added remix plugin but I get all sorts of weird errors from remix complaining about a missing package.json to some internal nx issues with nx-devkit and things. |
Beta Was this translation helpful? Give feedback.
-
An feasible solution is this repo: https://github.com/jaysoo/nx-remix-vite-example |
Beta Was this translation helpful? Give feedback.
-
Support seems to be present now :) As per this PR: #27884 (and all the other PRs it links to at the bottom). Example: https://github.com/itxch/nx-remix-vite The steps I followed:
|
Beta Was this translation helpful? Give feedback.
-
@Coly010 are there any plans to update the generator/docs for the Remix plugin to use/explain the |
Beta Was this translation helpful? Give feedback.
-
I'm curious the current status of this vs the endgame, because I'm very interested in using nx with contemporary Remix,. Is this a fair summary from what I've read here?: Currently it's only kind-of supported, you need to use the standard nx instructions to generate a Remix project, but after that you need to manually edit multiple configuration files, and then manually migrate the project from classic Remix, and even then there are issues with some imports. So, out-of-the-box it's not working, but that will be coming, eventually. |
Beta Was this translation helpful? Give feedback.
-
This is included now with 20.0.7 release, and it seems to mostly be OK out-of-the-box, but there are some problems:
But what I am most interested in is how to use a custom I have a minimal pre-made monorepo project here if it's of any interest, but it stops short of having the custom vite config for Remix that I need: |
Beta Was this translation helpful? Give feedback.
-
Hi, Is there any support to a Remix spa mode app with Nx ? |
Beta Was this translation helpful? Give feedback.
-
Description
Adding support for Remix with Vite in the @nx/remix plugin.
Motivation
I believe using Remix with Vite allows for a better developer experience.
Suggested Implementation
Just like for @nx/react, when you generate a @nx/remix plugin you should be able to specify
--bundler=vite
Alternate Implementations
Beta Was this translation helpful? Give feedback.
All reactions