-
-
Notifications
You must be signed in to change notification settings - Fork 10.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
RR7 with cross-env and Docker #12617
Comments
I'm not 100% sure why it's included, since the base image is a Linux-based system and cross-env is for Windows compat. You can also just remove it from your package scripts entirely. |
Yeah, I think I tried moving it out of dev deps and there's still issues with that. I just removed from mine and changed the scripts and it works fine. It seems they added it across all templates though so I'm assuming it's something they are moving to for whatever reason... |
It's just for Windows compatible when not in Docker. That makes sense, but I'm not sure the Dockerfile is correct as-is. |
Hey @timdorr - we just started using a fresh template for RR7, and wanted to rely on the Docker image. What parts in your view might not be ready? |
I'm using React Router as a...
framework
Reproduction
bunx create-react-router@latest my-react-router-app
docker build -f Dockerfile.bun -t my-app .
docker run -p 3000:3000 my-app
System Info
Used Package Manager
pnpm
Expected Behavior
Prior to RR implementing cross-env everything worked as expected and we got a running docker container straight from default template.
Actual Behavior
running in Docker fails with > cross-env NODE_ENV=production react-router-serve ./build/server/index.js
sh: cross-env: not found
ELIFECYCLE Command failed.
The text was updated successfully, but these errors were encountered: