Hello everyone,
I’m trying to deploy an react project ( react version 5.0.0 ) and every time it fails to build becouse node version is 12.18.0 and react require >=14.0.0. Locally I am able to build it with out problems becouse i have node version 16.13.0.
9:37:54 PM: Preparing Git Reference refs/heads/main
9:37:54 PM: Parsing package.json dependencies
9:37:55 PM: Starting build script
9:37:55 PM: Installing dependencies
9:37:55 PM: Python version set to 2.7
9:37:56 PM: v12.18.0 is already installed.
9:37:57 PM: Now using node v12.18.0 (npm v6.14.4)
9:37:57 PM: Started restoring cached build plugins
9:37:57 PM: Finished restoring cached build plugins
9:37:57 PM: Attempting ruby version 2.7.2, read from environment
9:37:59 PM: Using ruby version 2.7.2
9:37:59 PM: Using PHP version 5.6
9:37:59 PM: Started restoring cached yarn cache
9:37:59 PM: Finished restoring cached yarn cache
9:38:00 PM: No yarn workspaces detected
9:38:00 PM: Started restoring cached node modules
9:38:00 PM: Finished restoring cached node modules
9:38:00 PM: Installing NPM modules using Yarn version 1.22.10
9:38:01 PM: yarn install v1.22.10
9:38:01 PM: [1/4] Resolving packages…
9:38:01 PM: [2/4] Fetching packages…
9:38:23 PM: error react-scripts@5.0.0: The engine “node” is incompatible with this module. Expected version “>=14.0.0”. Got “12.18.0”
9:38:23 PM: error Found incompatible module.
9:38:23 PM: info Visit yarn install | Yarn for documentation about this command.
9:38:23 PM: Error during Yarn install
9:38:23 PM: Build was terminated: Build script returned non-zero exit code: 1
9:38:23 PM: Creating deploy upload records
9:38:23 PM: Failing build: Failed to build site
9:38:23 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 1
9:38:23 PM: Finished processing build request in 31.637100496s
I am not using any enviroment variable, it is an simple project to practice react since I’m still learning.
Can anyone help me whit this problem?
Thanks,
Have a nice day/night