Sass mixin still uses ~ (tilde) in $directory which is unsupported by newer bundlers #798
Labels
bug
Something isn't working
contributors welcome!
Open to outside contributors
sass
Sass related issue
Describe the bug
The use of ~ in the css
url
statement for the$directory
variable default is causing errors in Angular's newer esbuild-based build system. My understanding is webpack is moving away from this convention as well. Angular's non-esbuild build system supports with or without ~. So it would seem to me that removing the ~ from the$directory
default would allow for maximum capability.Steps to Reproduce
ng new test-app
yarn add @fontsource/roboto
styles.scss
:angular.json
to esbuild builderChange:
to
ng build
Expected behavior
Should build successfully. But instead I receive the following error:
Version
5.0.2
OS
Windows 11
Browser
Chrome
Additional context
Recommend removing the ~ from
fontsource/packages/cli/src/sass/mixins.ts
Lines 43 to 47 in 0f4d2c7
The text was updated successfully, but these errors were encountered: