You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently seeing a build error in Netlify's preview build logs in the pull request checks.
From the log I assume the Github workflows config won't be picked up by Netlify and this can be expected.
That means the Netlify CI will run it's default npm install command. This won't work for us now as with the Gatsby v5 we need node modules to be installed with the npm install --legacy-peer-deps command to run the builds without peer dep errors.
As the first attempt to fix this:
Please add the following CI flags to Environment Variables, which should resolve builds failing:
NODE_VERSION with the value 18 to set the latest Node v18 for build environment required by Gatsby v5 as described in the official debug doc: Node.js and JavaScript
After adding the flag redeploy with cache cleaning.`
The text was updated successfully, but these errors were encountered:
Currently seeing a build error in Netlify's preview build logs in the pull request checks.
From the log I assume the Github workflows config won't be picked up by Netlify and this can be expected.
That means the Netlify CI will run it's default
npm install
command. This won't work for us now as with the Gatsby v5 we need node modules to be installed with thenpm install --legacy-peer-deps
command to run the builds without peer dep errors.As the first attempt to fix this:
NPM_FLAGS
with the value--legacy-peer-deps
to resolve peer dep issues as described in the official debug doc:Build fails on peer dependency conflict
NODE_VERSION
with the value18
to set the latest Node v18 for build environment required by Gatsby v5 as described in the official debug doc: Node.js and JavaScriptThe text was updated successfully, but these errors were encountered: