R
Railway3y ago
dante

I get errors in Railway that I don't get in my personal code

I am trying to run a program, but I get this error. When I run the code on my computer, I get no error
9 Replies
Adam
Adam3y ago
Not familiar with the language, but are you including every dependency needed in your requirements files?
dante
danteOP3y ago
yes as I said when I run the code on my computer I get no error, but when railway runs it I get an error
Adam
Adam3y ago
Just because requirements are installed in your local machine doesn’t mean Railway is being told to install them
dante
danteOP3y ago
oh I have a package.json though
Adam
Adam3y ago
Googled your issue, looks like forEach is a stock Javascript function. I was wrong about the requirements
dante
danteOP3y ago
ok
Adam
Adam3y ago
that’s odd, I don’t have a fix for you, sorry. I would just go through your normal troubleshooting steps but through Railway instead of locally
dante
danteOP3y ago
ah I think I have found the issue! the error was that the folder that the code was looking for had no file inside railway had that as an error while mine did not
Adam
Adam3y ago
Ah nice, glad you've found the fix
Want results from more Discord servers?
Add your server