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

Issue with packages in default template #34

Open
dane-stevens opened this issue Dec 10, 2024 · 1 comment
Open

Issue with packages in default template #34

dane-stevens opened this issue Dec 10, 2024 · 1 comment

Comments

@dane-stevens
Copy link

cross-env is installed as a dev dependency, but is needed for the start script in production.

should be installed as a regular dependency?

@awahlig
Copy link

awahlig commented Dec 19, 2024

I have the same problem. I built a fresh project using docker and got this when trying to run it.

> start
> cross-env NODE_ENV=production react-router-serve ./build/server/index.js

sh: cross-env: not found

Moving cross-env to regular dependencies and rebuilding fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants