2 years 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
2 years ago
is the node version the same on railway and locally?
2 years ago
n/a
2 years ago
local: v18.20.0
server: v18.20.2
2 years ago
try deleting your local project and re-clone it from GitHub
2 years 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
2 years ago
do you get the error locally after a fresh clone
2 years ago
locally works fine, in the server is the problem
2 years ago
sorry, i check it and it didnt works locally

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



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