gridsome
                                
                                 gridsome copied to clipboard
                                
                                    gridsome copied to clipboard
                            
                            
                            
                        Gridsome site build failing on netlify with ERR_OSSL_EVP_UNSUPPORTED
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)
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:

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