This issue was created by an agent auditing CI failures from the Next.js Deploy Suite (vinext main vs Next.js v16.2.6, 2026-06-08).
Problem
SCSS imports that resolve into node_modules are not handled: both the tilde (~package) import form and CSS-Module imports from within node_modules fail to build/render. Both suites are fully red (0 passing) across sass and sass-embedded.
Affected Test Suites
test/e2e/app-dir/scss/npm-import-tilde/npm-import-tilde.test.ts (2 failures — sass 1.54.0, sass-embedded 1.75.0; "should render the page")
test/e2e/app-dir/scss/nm-module/nm-module.test.ts (2 failures — sass 1.54.0, sass-embedded 1.75.0; "should render the page")
Estimated impact
~4 e2e failures across 2 suites.
Notes
Distinct from #1343 (SCSS variables leaking to LightningCSS) and the closed #1450 (url() emission). This is specifically node_modules/tilde import resolution in the SCSS pipeline.
Recommendation
- Reproduce with an app importing
@import '~some-pkg/styles' and a .module.scss that lives in node_modules.
- Wire the SCSS resolver to resolve
~-prefixed and bare node_modules specifiers the way Next.js/webpack's sass-loader does.
Problem
SCSS imports that resolve into
node_modulesare not handled: both the tilde (~package) import form and CSS-Module imports from withinnode_modulesfail to build/render. Both suites are fully red (0 passing) acrosssassandsass-embedded.Affected Test Suites
test/e2e/app-dir/scss/npm-import-tilde/npm-import-tilde.test.ts(2 failures —sass1.54.0,sass-embedded1.75.0; "should render the page")test/e2e/app-dir/scss/nm-module/nm-module.test.ts(2 failures —sass1.54.0,sass-embedded1.75.0; "should render the page")Estimated impact
~4 e2e failures across 2 suites.
Notes
Distinct from #1343 (SCSS variables leaking to LightningCSS) and the closed #1450 (
url()emission). This is specificallynode_modules/tilde import resolution in the SCSS pipeline.Recommendation
@import '~some-pkg/styles'and a.module.scssthat lives innode_modules.~-prefixed and barenode_modulesspecifiers the way Next.js/webpack's sass-loader does.