-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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 Compilation Error in 6.3.1 #12039
Comments
Hi @bmoellers, which sass version do you use? Maybe you are missing some files. |
Not sure what version of sass that ember-cli-sass version 6.0 includes to be honest. We include the compiled min version of the foundation.js but we include files directly from the node modules in our scss file.
|
I upgraded to ember-cli-sass version 10 which allows you to use the sass version you want and that is 1.26.3. Still has the same problem. |
So this can be ruled out. The code which returns So it seems the You can test the values with |
These are the default values:
|
Not sure why this mixin is even used here. See https://github.com/foundation/foundation-zurb-template/blob/2706b837898c0d6c21913538f724c4924fa50e18/src/assets/scss/app.scss for an example setup. Including the settings file at https://github.com/foundation/foundation-zurb-template/blob/2706b837898c0d6c21913538f724c4924fa50e18/src/assets/scss/_settings.scss Use the mixin OR the list of imports. I recommend to go with the long list of imports. See https://get.foundation/sites/docs/sass.html#adjusting-css-output |
I found our settings file. It did not have a full list of the breakpoints so that was the problem. Of course then I get another breakage because: Sass Syntax Error (SassCompiler) in /Users/bmoellers/GitHub/personal/valkyrie-transact/node_modules/foundation-sites/scss/util/_color.scss:21:10 Error: $color: foreground(#5887F5) is not a color. So I am not sure where they got the foreground from but I assume it is not defined somewhere. |
Do you use an old version of the settings file? Also see foundation/foundation-rails#214 You can see it in https://unpkg.com/browse/foundation-sites@6.2.4/scss/settings/_settings.scss but not in https://unpkg.com/browse/foundation-sites@6.3.0/scss/settings/_settings.scss When you upgrade Foundation Sites you also have to migrate the settings. |
I am sure the settings file is old. I checked the history and they reverted changes in it several times after the last foundation update. That was before I was even ever aware of the project. I guess that is the problem with working for a larger company with very strict brand and UX considerations... I can update it and then see what happens or I can try and cherry pick changes. Either way is going to be a lot of work. I do know that if I remove the foreground function it will then compile so that is the last hurdle. I will probably just do a best guess and then work backwards to see what changes are needed. At least I learned to trouble shoot SASS and foundation much better for any future issues. |
If you miss anything you can get it from https://unpkg.com/browse/foundation-sites@6.2.4/scss/util/_color.scss and the other files, like the |
I copied over the settings files and it fixes all the compilation issues. But the main problem is that everything became super small. I noticed the breakpoint sizes changed so I tried setting them back to what was there before but it remains super small. Do you know what possibly changed to control this size change? And what I can do to get it back to the larger size? |
Do you mean the global font size? This can be set in the settings too. You may want to check if the browser window is zoomed or from where the smaller values come from. |
What should happen?
I am trying to upgrade my ember project. We include foundation but the newer versions of ember upgraded jQuery and thus broke the current version of foundation. To fix that I updated the version to 6.3.1 however it no longer imports.
Basically we do copy foundation min from the node modules:
new Funnel(new UnwatchedDir('node_modules/foundation-sites/dist/js'), { files: ['foundation.min.js'] })
Then we import that in to our vendor file. This all worked with previous builds.
Our app.scss looks this this:
@import "settings";
@import "foundation";
@include foundation-everything;
@import "globals";
@import "mixins/responsive";
@import "mixins/flex-layout";
@import "mixins/cta-button";
@import "mixins/sprite-helpers";
@import "sprites";
@import "sstfonts";
@import "layout-common-component";
@import "multi-line-buttons";
@import "wizard-buttons";
@import "stacked-buttons";
@import "redeem-code";
@import "info-table";
@import "handle-korra-exception";
@import "scroll-fader";
@import "warning-text";
@import "manage-credit-card";
@import "ember-power-calendar";
@import "modal-dialog";
// This needs the scss extension because component-css generates both a .scss and .css file
@import "pod-styles.scss";
What happens instead?
Now when we import this, it fails with the following.
Sass Syntax Error (SassCompiler) in /Users/bmoellers/GitHub/personal/valkyrie-transact/node_modules/foundation-sites/scss/util/_breakpoint.scss:176:28
Error: Undefined operation: "3 lte null".
on line 176 of node_modules/foundation-sites/scss/util/_breakpoint.scss, in mixin
breakpoint
from line 45 of node_modules/foundation-sites/scss/components/_reveal.scss
from line 40 of tmp/sass_compiler-input_base_path-syxudCsS.tmp/app/styles/_foundation.scss
from line 3 of tmp/sass_compiler-input_base_path-syxudCsS.tmp/app/styles/app.scss
---------------------------^
Possible Solution
...
Test Case and/or Steps to Reproduce (for bugs)
Test Case:
How to reproduce:
1.
2.
3.
Context
Just trying to update to the newest version of ember.
Your Environment
Checklist
The text was updated successfully, but these errors were encountered: