stylePreprocessorOptions.includePath is not following symlinks when using @angular-devkit/build-angular:application #27353
Labels
angular/build:application
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Command
build, serve
Is this a regression?
Description
I'm trying to include an .scss file from an external project that is symlinked into my angular project for development purposes.
Given the
library
symlink in this path:<project-root>/lib/@scope/(->library)/_index.scss
and this configration in angular.json:
referencing the stylesheet like this:
@use '@scope/library' as lib;
does not work using
@angular-devkit/build-angular:application
.It does however work using
@angular-devkit/build-angular:browser
.Minimal Reproduction
lib
folder.lib
folderlib
tostylePreprocessorOptions.includePaths
ng serve
.Exception or Error
Your Environment
Anything else relevant?
The behavior is different when explicitly referencing the stylesheet like this:
@use '@scope/library/_index.scss' as lib;
or
@use '@scope/library/index' as lib;
Then it finds the file within
node_modules
where it is also present (since the library I'm symlinking into my project is normally a regular npm dependency). So@use '@scope/library' as lib;
throws an error,@use '@scope/library/_index.scss' as lib;
ignores the symlink and finds the file elsewhere.The text was updated successfully, but these errors were encountered: