gridsome icon indicating copy to clipboard operation
gridsome copied to clipboard

Gridsome site build failing on netlify with ERR_OSSL_EVP_UNSUPPORTED

Open rickbsgu opened this issue 3 years ago • 2 comments

Description

Gridsome site build failing on netlify with ERR_OSSL_EVP_UNSUPPORTED

Environment

  • Gridsome updated to latest: 0.7.23
  • Using Node 18
  • Updated netlify machine to Ubuntu focal

Analysis

Apparently it's a node 18 issue, solvable by upgrading to webpack 5 (gridsome currently using webpack 4)

rickbsgu avatar Jun 18 '22 01:06 rickbsgu

Or instead of playing with webpack, which could cause other failures (it always does for me 🙈), you can specify the node version you want to use in Netlify. Just head over to your project and the to /settings/deploys#environment and add the following variable: image

rasulkireev avatar Oct 31 '22 14:10 rasulkireev

As an alternative export the following environmental variables (if possible in netlify) NODE_OPTIONS=--openssl-legacy-provider

Bomberus avatar Jan 17 '23 14:01 Bomberus