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

GitHub Actions workflow for Static Site is failing with "Error: error:0308010C:digital envelope routines::unsupported" on Oryx build #1530

Open
yoonaoh opened this issue Aug 19, 2024 · 1 comment

Comments

@yoonaoh
Copy link

yoonaoh commented Aug 19, 2024

Describe the bug
Build and deploy step for GitHub Actions is failing with "Error: error:0308010C:digital envelope routines::unsupported"

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Azure Portal and search for App Spaces (Preview)
  2. Create new App Space with React App starter template
  3. Select GitHub organization, subscription, and region, and hit Deploy
  4. Wait for deployment to finish, and wait for GitHub deployment for Static Site to finish

GitHub Actions Workflow Run
https://github.com/yoonaoh/reactbasicb3d7/actions/runs/10458340168/job/28959922401

Workflow file
https://github.com/yoonaoh/reactbasicb3d7/actions/runs/10458340168/workflow

Expected behavior
Expected workflow run to complete successfully

Screenshots
image

Device info (if applicable):

  • OS: Windows
  • Browser: Edge
  • Version: 127.0.2651.105

Additional context
React project is using Node 16

@annikel
Copy link

annikel commented Aug 19, 2024

The error Error: error:0308010C:digital envelope routines::unsupported seems to be caused by your project’s incompatibility with Node.js 18, which we recently set as the default Node.js version for this action, since Node.js 16 is EOL. Node.js 18 includes updates that can break older dependencies.

To fix this, explicitly specify Node.js 16 in your package.json by adding:

{
  ...
  "engines": {
    "node": "^16.0.0"
  }
}

or update your project's dependencies to be Node.js 18 compatible.

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

2 participants