next

5 months 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!

0 Replies

5 months ago

is the node version the same on railway and locally?


5 months ago

n/a


5 months ago

local: v18.20.0
server: v18.20.2


5 months ago

try deleting your local project and re-clone it from GitHub


5 months 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


5 months ago

do you get the error locally after a fresh clone


5 months ago

locally works fine, in the server is the problem


5 months ago

sorry, i check it and it didnt works locally

1318360345839931400


5 months ago

the basic template


5 months ago

there's definitely something up with your code


5 months ago

You know how to change the node version on the railway server?


5 months ago


5 months ago

I try it, but it didnt changes the node version

1319071731838615600
1319071732111249400
1319071732476285000


5 months ago

only major versions are supported, with nixpacks you dont have fine control or minor and patch versions


5 months ago

Understood, I will look for a service that allows it


5 months ago

A Dockerfile will allow it


next - Railway Help Station