I am trying to deploy my react app on cloudflare pages and getting this error while building with yarn.
error got@12.1.0: The engine "node" is incompatible with this module. Expected version ">=14.16". Got "12.18.0" error Found incompatible module. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. Error during Yarn install Failed: build command exited with code: 1 Failed: error occurred while running build command
The build is successful in my local, I am using node version v16.15.0 It seems like cloudflare is using lower node version 12 by default.