adrianhajdin / project_ai_mern_image_generation

Build and Deploy a Full Stack MERN AI Image Generation App MidJourney & DALL E Clone
https://jsmastery.pro
1.08k stars 302 forks source link

Error on Deploying server folder on Render #49

Open Codebloater opened 1 year ago

Codebloater commented 1 year ago

error bson@5.3.0: The engine "node" is incompatible with this module. Expected version ">=14.20.1". Got "14.17.0" May 13 02:30:51 PM error Found incompatible module.

got this error while running the folder on Render

aelt95 commented 1 year ago

try changing yarn for npm build

adarsh2901 commented 1 year ago

In the environment variable section on Render add NODE_VERSION as key and add the node version you are currently using on your system as value and it will work

Bagrianow commented 1 year ago

Yo mate, in my case that works =>

"engines": { "node": ">=14.20.1" }

Add this after "dependencies in package.json image

Piyushsinganjude commented 1 year ago

thanks mate! @Bagrianow

MichealJWEllis commented 1 year ago

@Bagrianow hey your post worked for me also! Thanks!