buffer.File is an experimental feature and might change at any time (Next.js)

a-r-o-lHOBBY

4 months ago

I need help please!
In this project there are two section available to upload images to a S3 bucket. In the first section the upload process is with individual files and all works fine, but the second section uses a very similar upload function but whit several files as params and the function fails, the error is:

(node:15) ExperimentalWarning: buffer.File is an experimental feature and might change at any time

(Use node --trace-warnings ... to show where the warning was created)
ReferenceError: File is not defined

This doesn't happen in the local environment, all works successfully

Solved

4 Replies

a-r-o-lHOBBY

4 months ago

some pictures

Attachments


4 months ago

Please try to set engines.node to the same version as you use locally in your `package.json` file.


Status changed to Awaiting User Response railway[bot] 4 months ago


a-r-o-lHOBBY

4 months ago

Thank you very much!


Status changed to Awaiting Railway Response railway[bot] 4 months ago


4 months ago

Glad it worked!


Status changed to Awaiting User Response railway[bot] 4 months ago


Status changed to Solved christian 4 months ago