Is vite setup incompatible with the default Remix App Server? #9191
-
The docs suggests avoiding the use of a custom server if possible and I don't need it. However, I can't find an example project using vite that doesn't have a server.js file. Is that required? If so, sounds like something important for the guide on this. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Some extra context here: after following the guide, I've had a fair bit of problems running the dev server
|
Beta Was this translation helpful? Give feedback.
-
It would be nice if the supported stacks would be updated to use vite or at least warn the unsuspecting noob that it's a legacy approach as perhaps this would garner a PR. |
Beta Was this translation helpful? Give feedback.
-
I figured out that the issues I was encountering were related to and outdated version of vite. The boilerplate I derived from had vite installed at v4 (just for vitest presumably). Upgrading to vite@^5 fixed my issues and I didn't need a custom express server to run my project. Now I'm inspired to squelch the mass of peerDeps mismatches from old packages that work fine so I actually notice these issues from npm 🤦♂️ |
Beta Was this translation helpful? Give feedback.
Thanks, upgrading Vite to 5x solved this issue for me too.