-
Notifications
You must be signed in to change notification settings - Fork 12k
@angular-devkit/build-angular:browser-esbuild throw error on scss import #23698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is because Sass by default is only able to resolve files relative to the containing file. Once no files matches the compile will fallback to resolve the files based on the loadPaths/includePaths. Under Webpack these work because additional paths are added in sass-loader to the include paths https://github.com/webpack-contrib/sass-loader/blob/49a578a218574ddc92a597c7e365b6c21960717e/src/utils.js#L306-L322. You could add the |
Like this?
|
It depends on the structure of you repo and project. Single project workspace: "stylePreprocessorOptions": {
"includePaths": [
""
]
}, Multi project workspace: "stylePreprocessorOptions": {
"includePaths": [
"projects/<app-project-name>"
]
}, |
not working( |
@PronDmytro, actually just noticed you are using 14.0 and not 14.1. SCSS support was only introduced in 14.1. Can you please update |
Yes, that works. thx X [ERROR] [plugin angular-compiler] No loader is configured for ".ttf" files: src/assets/fonts/Lato/Lato-Regular.ttf src/app/core/admin/admin-data-management/data-management-bonds/data-management.component.scss:5:30: 5 │ ...local("Lato Regular"), url(src/assets/fonts/Lato/Lato-Regular.ttf); ╵ |
@PronDmytro, that seems like indeed a bug that we need to address. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command (mark with an
x
)Description
I trying out the new experimental esbuild builder and got a lot of same erros with import scss files
🔬 Minimal Reproduction
angular.json
src/app/core/faq/faq.component.scss
src/assets/styles/variables.scss
🔥 Exception or Error
🌍 Your Environment
The text was updated successfully, but these errors were encountered: