-
-
Notifications
You must be signed in to change notification settings - Fork 373
Alias set in "preact.config.js" fail to resolve when used in SCSS files #1475
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
You mentioned you upgraded, what versions were you previously using? |
@rschristian I upgraded as follows:
I also upgraded |
Yikes, that's nearly 3 years of updates you just jumped then. I'll look into it, might just be a style loader option or something that's no longer passed through. |
I know… Well, I'm no pro coder and this is a side-project ! Thank you for the help and let me know if I can investigate some tracks. |
Sorry, away from my desk so I can't try myself, but can you try prefixing your import with |
It works indeed ! My Sorry for the bother, especially since this wasn't a preact-cli issue. |
Ah, glad to hear it. Might've been a change at some point with |
Do you want to request a feature or report a bug?
A bug.
What is the current behaviour?
Upgrading to the latest
preact
andpreact-cli
versions, I get errors when building my app. From what I understand, the custom resolve aliases I defined inpreact.config.js
(in order to simplify imports given my folder structure) no longer work only when used in .scss files (for instance, inside anurl()
for background property).If the current behaviour is a bug, please provide the steps to reproduce.
Related parts in my
preact.config.js
file:Use case example, in a file
Header.scss
:Resulting error when running
npm run build
:What is the expected behaviour?
Correct alias resolving in
.scss
files when using them to link assets.Other relevant information.
Using
node-sass: ^5.0.0
andsass-loader: ^10.1.0
.My
preact info
output:I didn't find any directly related issue, but I hope I didn't miss anything already documented. I didn't find anything like a preact-cli upgrade guide, does this exist somewhere ?
The text was updated successfully, but these errors were encountered: