Skip to content

Conversation

@MenKNas
Copy link
Contributor

@MenKNas MenKNas commented Jan 20, 2026

Description / Motivation

Issue

Next.js 16 upgrade broke Sass compilation in nextjs-sxa template:

  • sass-alias package uses legacy Sass API incompatible with Next.js 16
  • Node.js built-in modules being bundled for client causing build errors

Fix

  • Replaced sass-alias with custom importer implementing Next.js 16 Sass API
  • Added webpack config to exclude Node.js built-ins from client bundle
  • Removed sass-alias dependency

Testing Details

  • Unit Test Added
  • Manual Test/Other (Please elaborate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@MenKNas MenKNas self-assigned this Jan 20, 2026
@MenKNas MenKNas merged commit ad0d969 into dev Jan 22, 2026
5 checks passed
@MenKNas MenKNas deleted the bugfix/JSS-8810-fix-for-issues-related-to-next16-upgrade branch January 22, 2026 15:35
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

Successfully merging this pull request may close these issues.

3 participants