a year ago
Hello everyone!
I'm working on a project using the Paper Kit React template, and I'm running into an issue with the Navbar component when deploying to Railway. Locally, everything works perfectly, but on the Railway server, I get the following error.
What I've tried so far:
I'm using the following versions:
Reactstrap: 8.10.0
Bootstrap: 4.6.2
React: ">=16.0.0",
My Navbar code is the default from the Paper Kit React template
Issue:
The error specifically says that the Navbar component is undefined. Again, everything works locally, but the issue arises after deploying to Railway.
Any ideas?
Could this be related to the server environment or deployment process? I'd appreciate any advice!
16 Replies
a year ago
is the node version the same on railway and locally?
a year ago
n/a
a year ago
local: v18.20.0
server: v18.20.2
a year ago
try deleting your local project and re-clone it from GitHub
a year ago
yes, i try it, and is the same problem, i download the paper kit react again and deploy it and didn´t work in the server
a year ago
do you get the error locally after a fresh clone
a year ago
locally works fine, in the server is the problem
a year ago
sorry, i check it and it didnt works locally

a year ago
the basic template
a year ago
there's definitely something up with your code
a year ago
You know how to change the node version on the railway server?
a year ago
a year ago
I try it, but it didnt changes the node version



a year ago
only major versions are supported, with nixpacks you dont have fine control or minor and patch versions
a year ago
Understood, I will look for a service that allows it
a year ago
A Dockerfile will allow it