-
Notifications
You must be signed in to change notification settings - Fork 140
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
SASS import file not found when using nested relative imports #404
Comments
This seems be an issue in the windows environment #387 { Error: bootstrap\variables.scss doesn't exist! I would love a solution. The work around he used didn't work for me. My environment |
I'm getting the same error as this issue and sass/libsass#1750 only I am in a Mac environment. |
FWIW an odd fix on our theme (a modification of peak) was to import the main 'theme.scss' in our override file first and then proceed with our own imports. Haven't seen the error come back. |
This is a bug in stencil-cli that occurs whenever you have multiple css files imported into an html file. We can issue a pull request with the fix. We can reliably get this to occur on centos, ubuntu, mac, and windows. |
Expected behavior
The file is imported as it does actually exist 🙂
Actual behavior
Random failures (hitting refresh a few times will fix it at random)
Steps to reproduce behavior
I haven't tried this on cornerstone or a new theme but, in ours we have some nested imports where the main theme file will import
header
andheader.scss
imports all of the files in the./header
:sample base theme file that is doing the nested imports:
The strangest part is this just randomly works or fails. Tried moving up and down on node versions and tried moving all the imports to the main theme file and the issue comes back.
I did dig up this issue: sass/libsass#1750 so it did make me wonder if the version of hode-sass needed to be updated in stencil-cli.
The text was updated successfully, but these errors were encountered: