Website keeps on crashing

Anonymous
FREE

3 days ago

so i was updating my code, and i encountered an error which is this one below:
webidl.is.File = webidl.util.MakeTypeAssertion(File)

^

ReferenceError: File is not defined

I'm not a tech expert or a dev, I mostly use ai for help. and so I brought it back to my old working code and restarted it but it still gives me the same error. Please help, thank you!

Awaiting Railway Response$10 Bounty

5 Replies

Railway
BOT

3 days ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


own171
HOBBY

3 days ago

hey! the issue is likely you're trying to use browser APIs (like File) in a server-side context, which doesn't work because Node.js doesn't have those

browser-specific objects.

you need to either:

- move File API usage to client-side only

- use Node.js equivalents (like Buffer or fs)

- add proper environment checks

basically you're mixing browser code with server code and that breaks things

let me know if this fixes it, and if not we'll look for another solution. share me a link to your codebase in that case - might be hard to fix without further context.


Anonymous
FREE

3 days ago

Hey I'm still having some problems here is my code, sorry I'm just not an expert hehe.

https://github.com/Wolfangx5/Rbxpro


phoenixauro
HOBBYTop 10% Contributor

3 days ago

Upgrade Node.js to v18 or newer


Anonymous
FREE

a day ago

Appreciate the amazing feedback guys, tried it all and it's finally working.


Website keeps on crashing - Railway Help Station