ReferenceError: FormData is not defined in Production
Hello, my codes are working fine on localhost, but when I push the codes to railway it throws this message when hitting the endpoint
15 Replies
Project ID:
1862ff4f-3f51-4d9c-a0c3-26d926471f99
1862ff4f-3f51-4d9c-a0c3-26d926471f99
this is the peace of code that is working on localhost and throwing on railway
are you sure you are calling the api with https?
yes
on the <my other endpoint> its https://<domain>/<endpoint>
I am also receiving the data in the controller here as formdata from my nextjs application, maybe it helps you out...
what version of node are you using locally and what version is railway using?
my local version
how can I see railway node version?
it would be in the build table at the top of the build logs
yeap just found it
set
engines.node
to 18
in your package.jsonlike this?
the period denotes an object
or this
ok got it
gonna push to see i it works
it worked thanksss
no problem!