Closed
Description
🐞 Bug report
Command (mark with an x
)
- new
- build
- serve
- test
- e2e
- generate
- add
- update
- lint
- extract-i18n
- run
- config
- help
- version
- doc
Description
I trying out the new experimental esbuild builder and got a lot of same erros with import scss files
🔬 Minimal Reproduction
angular.json
...
"builder": "@angular-devkit/build-angular:browser-esbuild"
...
src/app/core/faq/faq.component.scss
@import "src/assets/styles/variables";
.c-faq {
&__header {
color: $oxford-blue;
}
}
src/assets/styles/variables.scss
$oxford-blue: rgba(51, 63, 82, 1);
🔥 Exception or Error
X [ERROR] [plugin angular-compiler] Could not resolve "src/assets/styles/variables"
src/app/core/faq/faq.component.scss:1:8:
1 │ @import "src/assets/styles/variables";
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
🌍 Your Environment
Angular CLI: 14.0.5
Node: 16.15.0
Package Manager: npm 8.5.5
OS: win32 x64
Angular: 14.0.5
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1400.5
@angular-devkit/build-angular 14.0.5
@angular-devkit/core 14.0.5
@angular-devkit/schematics 14.0.5
@angular/cdk 14.0.4
@schematics/angular 14.0.5
rxjs 7.5.5
typescript 4.7.4