-
Notifications
You must be signed in to change notification settings - Fork 12k
When Using browser-esbuild, Import Statements in SCSS Files Don't Work and Build Fails with Error #26375
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
Previously, this worked due to webpack specific logic. There are 2 ways to resolve the error:
|
Thanks @alan-agius4, I owe you one...again. Keep up the good work, it is appreciated! |
@alan-agius4 What about paths from @import '~quill/dist/quill.snow.css'; This will throw an error with the current application builder Current hint from the CLI
Is there a way to make the syntax valid for the application builder? Or are there other alternative to make imports from
|
Thanks, It works well, |
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. |
Command
build
Is this a regression?
The previous version in which this bug was not present was
16
Description
I have a SCSS file containing variables which are used by other SCSS files in my application. This file is imported at the top of other SCSS files as such:
@import '/src/variables.scss';
However, if I use browser-esbuild as my builder, these import statements throw errors with the following message:
[ERROR] Can't find stylesheet to import.
Here is a complete example of one of them:
X [ERROR] Can't find stylesheet to import. ╷ 1 │ @import '/src/variables.scss'; │ ^^^^^^^^^^^^^^^^^^^^^ ╵ src\app\workouts\in-progress-workouts\in-progress-workouts.component.scss 1:9 root stylesheet [plugin angular-sass]
Minimal Reproduction
Exception or Error
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: