WPIntell

Source evidence

@import

CodeKit – Custom Codes Editor · support · 2021-01-04T09:19:00+00:00

mixedsentiment
mediumseverity
0.85relevance
6replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 34 rows with source links

14.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

29 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
snakewald resolved
Hi there, since the latest update I get an error message (variable not found) when I save my main scss file which contains several @import to other custom codes files. The editor consideres it an error since the variable is defined in another scss file which is imported. The editor still saves all changes but I get the error message. Thanks a lot – Alex on further inspection it turns out that no @import is working anymore, changes are saved to the current file but nothing is compiled due to the error message – please fix the @import issue! Hi Alex, Thanks for your feedback! Looks like it’s about the media queries. Are you importing the output scss file to another Custom Code? If so, either you can directly import with the editor file name like @import “xx-scss-desktop.scss” or you can write your variables into the “Global” editor which has globe icon, so you can also import the output file as well. Please let me know if you still cannot import your variables. Kind regards, Bilal Hi Bilal, thank you again for your fast reply. I do not use the media query feature provided by the plugin, instead I have turned all screen size tabs into global editors and work in the desktop files using regular @media . My main scss file looks like this: @import 119-scss-desktop; //VARS @import 120-scss-desktop; //MIXINS GENERAL @import 124-scss-desktop; //MIXINS NAV @import 126-scss-desktop; //MIXINS SVG @import 125-scss-desktop; //MIXINS FOOTER @import 217-scss-desktop; //MIXINS HEADER @import 129-scss-desktop; //MIXINS PLUGINS @import 153-scss-desktop; //MIXINS BLOG @import 154-scss-desktop; //MIXINS GRID @import 247-scss-desktop; //MIXINS THEME @import 121-scss-desktop; //MIXINS THEME ELEMENTS @import 132-scss-desktop; //MIXINS CUSTOM ELEMENTS @import 122-scss-desktop; //MIXINS PROJECT @import 123-scss-desktop; //ANIMATIONS I have tried using the output files instead but I still got the same error. I switched back to version 2.0.9 and everything works fine again. The current version just did not compile because variables and mixins from other files, although imported properly, were recognised as missing. Thank you very much for your support – Alex Okay. What’s the exact error message on this? And, I cannot see the quotes in your comment, do they have quotes? Like these: @import “119-scss-desktop”; //VARS @import “120-scss-desktop”; //MIXINS GENERAL @import “124-scss-desktop”; //MIXINS NAV @import “126-scss-desktop”; //MIXINS SVG @import “125-scss-desktop”; //MIXINS FOOTER @import “217-scss-desktop”; //MIXINS HEADER @import “129-scss-desktop”; //MIXINS PLUGINS @import “153-scss-desktop”; //MIXINS BLOG @import “154-scss-desktop”; //MIXINS GRID @import “247-scss-desktop”; //MIXINS THEME @import “121-scss-desktop”; //MIXINS THEME ELEMENTS @import “132-scss-desktop”; //MIXINS CUSTOM ELEMENTS @import “122-scss-desktop”; //MIXINS PROJECT @import “123-scss-desktop”; //ANIMATIONS I never had to use quotes here before but yes – they were missing and now that I added them there are no more error messages 🙂 I did not expect such an easy fix! Thanks a lot!!! Great! 🙂

Comments

6 shown
snakewald 2021-01-04T10:23:00+00:00

on further inspection it turns out that no @import is working anymore, changes are saved to the current file but nothing is compiled due to the error message – please fix the @import issue!

Bilal TAS 2021-01-05T08:25:00+00:00

Hi Alex, Thanks for your feedback! Looks like it’s about the media queries. Are you importing the output scss file to another Custom Code? If so, either you can directly import with the editor file name like @import “xx-scss-desktop.scss” or you can write your variables into the “Global” editor which has globe icon, so you can also import the output file as well. Please let me know if you still cannot import your variables. Kind regards, Bilal

snakewald 2021-01-05T12:30:00+00:00

Hi Bilal, thank you again for your fast reply. I do not use the media query feature provided by the plugin, instead I have turned all screen size tabs into global editors and work in the desktop files using regular @media . My main scss file looks like this: @import 119-scss-desktop; //VARS @import 120-scss-desktop; //MIXINS GENERAL @import 124-scss-desktop; //MIXINS NAV @import 126-scss-desktop; //MIXINS SVG @import 125-scss-desktop; //MIXINS FOOTER @import 217-scss-desktop; //MIXINS HEADER @import 129-scss-desktop; //MIXINS PLUGINS @import 153-scss-desktop; //MIXINS BLOG @import 154-scss-desktop; //MIXINS GRID @import 247-scss-desktop; //MIXINS THEME @import 121-scss-desktop; //MIXINS THEME ELEMENTS @import 132-scss-desktop; //MIXINS CUSTOM ELEMENTS @import 122-scss-desktop; //MIXINS PROJECT @import 123-scss-desktop; //ANIMATIONS I have tried using the output files instead but I still got the same error. I switched back to version 2.0.9 and everything works fine again. The current version just did not compile because variables and mixins from other files, although imported properly, were recognised as missing. Thank you very much for your support – Alex

Bilal TAS 2021-01-05T18:47:00+00:00

Okay. What’s the exact error message on this? And, I cannot see the quotes in your comment, do they have quotes? Like these: @import “119-scss-desktop”; //VARS @import “120-scss-desktop”; //MIXINS GENERAL @import “124-scss-desktop”; //MIXINS NAV @import “126-scss-desktop”; //MIXINS SVG @import “125-scss-desktop”; //MIXINS FOOTER @import “217-scss-desktop”; //MIXINS HEADER @import “129-scss-desktop”; //MIXINS PLUGINS @import “153-scss-desktop”; //MIXINS BLOG @import “154-scss-desktop”; //MIXINS GRID @import “247-scss-desktop”; //MIXINS THEME @import “121-scss-desktop”; //MIXINS THEME ELEMENTS @import “132-scss-desktop”; //MIXINS CUSTOM ELEMENTS @import “122-scss-desktop”; //MIXINS PROJECT @import “123-scss-desktop”; //ANIMATIONS

snakewald 2021-01-07T07:32:00+00:00

I never had to use quotes here before but yes – they were missing and now that I added them there are no more error messages 🙂 I did not expect such an easy fix! Thanks a lot!!!

Bilal TAS 2021-01-07T12:31:00+00:00

Great! 🙂