next

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!

Closed

16 Replies

2 years ago

is the node version the same on railway and locally?


2 years ago

n/a


local: v18.20.0

server: v18.20.2


2 years ago

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


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


locally works fine, in the server is the problem


sorry, i check it and it didnt works locally

1318360345839931463


the basic template


2 years ago

there's definitely something up with your code


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


2 years ago


I try it, but it didnt changes the node version

1319071731838615602

1319071732111249459

1319071732476285010


2 years ago

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


Understood, I will look for a service that allows it


2 years ago

A Dockerfile will allow it


Welcome!

Sign in to your Railway account to join the conversation.

Loading...