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

Build error #1694

Open
soulaimaneyahya opened this issue Jan 14, 2024 · 2 comments
Open

Build error #1694

soulaimaneyahya opened this issue Jan 14, 2024 · 2 comments

Comments

@soulaimaneyahya
Copy link

Description

Build error

npm run build

Gridsome v0.7.23

Initializing plugins...
Load sources - 0s
Create GraphQL schema - 0.05s
Create pages and templates - 0.07s
Generate temporary code - 0.04s
Bootstrap finish - 0.72s
Error: assets/js/styles.b8185833.js from Terser
Error: error:0308010C:digital envelope routines::unsupported

package.json

  "scripts": {
    "develop": "gridsome develop",
    "build": "gridsome build",
    "explore": "gridsome explore"
  },
  "dependencies": {
    "bootstrap": "^5.3.2",
    "gridsome": "^0.7.0"
  },
  "engines": {
    "nvm": "20",
    "node": "^20"
  }

Environment

I'm using nodejs v20

Issue

It works on dev v16 and v20, but the build is successful on node v16 and fails on node v20.

@frederikheld
Copy link

Same here. The Readme in the repo root says "this project is under active development" but the last commit was 2 years ago. Looks abandoned to me :-(

@absentees
Copy link

Add the node parameter NODE_OPTIONS=--openssl-legacy-provider to your build/run command.
So NODE_OPTIONS=--openssl-legacy-provider gridsome build.

Worked for me on my local machine.

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