Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gridsome site build failing on netlify with ERR_OSSL_EVP_UNSUPPORTED #1641

Open
rickbsgu opened this issue Jun 18, 2022 · 2 comments
Open

Gridsome site build failing on netlify with ERR_OSSL_EVP_UNSUPPORTED #1641

rickbsgu opened this issue Jun 18, 2022 · 2 comments

Comments

@rickbsgu
Copy link

rickbsgu commented Jun 18, 2022

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)

@rasulkireev
Copy link

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

@Bomberus
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants