You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I deployed on 2 servers, same OS and versions of nodejs :
first server : I got the problem, but I could make it work finally by uploading the full "dev" app (source code) on the server, and then compile it on the server, and then run npm start, and it was working... but I guess it's not the best way to do.
second server : same problem : but unfortunately, I tried to compile it, but i get : "sh 1 : react-router not found", even if node modules are installed correctly.
I can see the GET request in the terminal, for example :
GET /assets/global-utils-wrG9T8G9.js
I tried to run the server in production on my development computer, and it's working fine, assets are served correctly.
Does anyone has an idea about what I forgot to do to make it work ?
I tried with react-router 7.2.0 (first server), and 7.3.0 (second server), same problem.
I hope someone can help me to fix this, or help me understanding what's wrong... because i'm lost. I don't know what else I could check.
THank you 🙂
I don't know if that can be useful : i'm using nvm to switch to node 22 to start the react-router server :
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello every one,
I was very happy to complete the migration from remix to react-router 7 (framework), and I encounter a problem when deploying on the server :
I deployed this files :
then i ran
npm i
andnpm start
but I get these logs in the console (for all assets) :
GET http://www.taximoov.com:3006/assets/entry.client-Cyskf7M-.js --> 404 (or 500 because i have a splat route (*) that matches anything otherwise).
I deployed on 2 servers, same OS and versions of nodejs :
first server : I got the problem, but I could make it work finally by uploading the full "dev" app (source code) on the server, and then compile it on the server, and then run npm start, and it was working... but I guess it's not the best way to do.
second server : same problem : but unfortunately, I tried to compile it, but i get : "sh 1 : react-router not found", even if node modules are installed correctly.
I can see the GET request in the terminal, for example :
GET /assets/global-utils-wrG9T8G9.js
I tried to run the server in production on my development computer, and it's working fine, assets are served correctly.
Does anyone has an idea about what I forgot to do to make it work ?
I tried with react-router 7.2.0 (first server), and 7.3.0 (second server), same problem.
I hope someone can help me to fix this, or help me understanding what's wrong... because i'm lost. I don't know what else I could check.
THank you 🙂
I don't know if that can be useful : i'm using nvm to switch to node 22 to start the react-router server :
Beta Was this translation helpful? Give feedback.
All reactions