angular-builder:browser-esbuild fails on angular material & scss imports #24271
Labels
angular/build:application
area: @angular-devkit/build-angular
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Command
build
Is this a regression?
The previous version in which this bug was not present was
No response
Description
Using the experimental esbuild in Angular 15 together with Angular/Materialv15 fails on importing some of the global scss files (and) when it encouters
@use
statements in those files.When running the build using the normal angular browser builder, everything runs fine.
Minimal Reproduction
So running
ng build
works fine when using the regular builder@angular-devkit/build-angular:browser
.When switching to
@angular-devkit/build-angular:browser-esbuild
, it borks on the scss files.Console output:
theme.scss is located right at the root of the
src
folder, and starts off like this:Part of angular.json:
Package.json:
Exception or Error
No response
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: