Azure / Azure/static-web-apps

error contentful-management@11.5.4: The engine "node" is incompatible with this module. Expected version ">=18". Got "16.20.2" error Found incompatible module.

Open
#1,348 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

1. Application: Gatsby Development framework(Jamstack)
2. Node version V18.18.0

configured, deployed in "Netlify" and it ran successfully. no build issue identified. Package.json and yarn.lock are the same. Azure static web app not able to build and deploy due to the below issue it shows. Same source can run in the local and netlify cloud hosting without any issues. Please advice

**error contentful-management@11.5.4: The engine "node" is incompatible with this module. Expected version ">=18". Got "16.20.2"
error Found incompatible module.**

**Build and deploy job**
https://github.com/Stephen-vellaichamy-selvaraj/Contentful-Jamstack/actions/runs/6960400086/job/18939798041

**.github\workflows**
name: Azure Static Web Apps CI/CD

on:
push:
branches:
- dev
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- dev

jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v3
with:
submodules: true
lfs: false
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_KIND_SKY_0918D4303 }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: "/" # App source code path
api_location: "" # Api source code path - optional
output_location: "public" # Built app content directory - optional
###### End of Repository/Build Configurations ######

close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_KIND_SKY_0918D4303 }}
action: "close"

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.