wso2 / oxygen-ui

The Design System powering WSO2 products.
https://wso2.github.io/oxygen-ui
Apache License 2.0
43 stars 24 forks source link

CI fails due to `node-sass` incompatibility with Node.js `v22.x` #304

Open JayaShakthi97 opened 10 hours ago

JayaShakthi97 commented 10 hours ago

Describe the issue: The CI pipeline is failing due to incompatibility between the latest LTS version of Node.js (v22.x) and the version of node-sass currently in use (v8.x). According to the node-sass Node Version Support Policy, node-sass@8.x is not compatible with Node.js v22, resulting in failures during dependency installation.

image

How to reproduce:

Expected behavior:

Additional context :


Optional Fields

Related issues:

Suggested labels:

JayaShakthi97 commented 10 hours ago

Proposed Solutions

  1. Upgrade node-sass (if possible): Check if a newer version of node-sass (if available) supports Node.js v22. Update to that version if feasible.
  2. Switch to sass (Dart Sass): Consider replacing node-sass with sass (Dart Sass), which is compatible with all Node.js versions and does not require native bindings.
  3. Pin Node.js Version: Temporarily pin the Node.js version in CI to an older LTS version (e.g., Node v18) that is compatible with node-sass@8.x. This will unblock the CI pipeline until an alternative solution is implemented.
JayaShakthi97 commented 9 hours ago

Stick the node version in CI