creativetimofficial / ct-material-kit-pro

Premium Bootstrap 4 UI Kit based on Google's Material Design
https://www.creative-tim.com/product/material-kit-pro
128 stars 37 forks source link

Mixins problem in scss files during gulp compiling #81

Closed flamisz closed 6 years ago

flamisz commented 6 years ago

I have a problem with the scss files. This wasn't a problem previously.

Error: Mixins may not be defined within control directives or other mixins.

I got the same error with webpack.

version: material-kit-pro-html-v2.0.2

[11:16:36] Using gulpfile ~/dev/material/gulpfile.js
[11:16:36] Starting 'compile:scss'...
Error in plugin 'sass'
Message:
    assets/scss/core/mixins/_utilities.scss
Error: Mixins may not be defined within control directives or other mixins.
        on line 53 of assets/scss/core/mixins/_utilities.scss
>>     @mixin badges-color($color){

   -----------^

[11:16:36] Finished 'compile:scss' after 243 ms
dragosct commented 6 years ago

Hi, @flamisz! Please take the latest update of the product 2.0.3 and the scss will not generate errors anymore. Regards, Dragos

flamisz commented 6 years ago

Thanks, but my company bought it on getbootstrap.com and it is still on 2.0.2 there. If I re-download I just get that version. Is there any way to upgrade it to 2.0.3?

screen shot 2018-03-28 at 7 59 00 am

dragosct commented 6 years ago

Hi, @flamisz! Please make an account on our site and then you can give me the username and I will give you the new version. Regards, Dragos

flamisz commented 6 years ago

Hi @dragosct10, username: webdeva9t email: webdev@trendsideas.com

Thanks

dragosct commented 6 years ago

Hi, @flamisz! We just added you the product to your account. Regards, Dragos

flamisz commented 6 years ago

Thanks.

zDrakon commented 6 years ago

I am having the same issue, downloaded the latest version from https://www.creative-tim.com/product/material-kit 2.0.3 with bootstrap 4.

Gulp watch is throwing the error of

`[16:36:08] Using gulpfile ~/Desktop/material-kit-html-v2.0.2/BS4/gulpfile.js [16:36:08] Starting 'watch'... [16:36:08] Finished 'watch' after 252 ms [16:36:12] Starting 'compile-scss'... Error in plugin 'sass' Message: assets/scss/core/mixins/_utilities.scss Error: Mixins may not be defined within control directives or other mixins. on line 53 of assets/scss/core/mixins/_utilities.scss

@mixin badges-color($color){

`

dragosct commented 6 years ago

Hi, @zDrakon! Thank you for using our products. You compile the scss with the version 2.0.2. Regards, Dragos

zDrakon commented 6 years ago

@dragosct10 I just showed the error... I am using version 2.0.2.. It does not compile

dragosct commented 6 years ago

Hi, @zDrakon! Sorry for my answer. I wanted to tell you that you must compile the scss with the version 2.0.3 of the product. Regards, Dragos

zDrakon commented 6 years ago

@dragosct10 Where is this 2.0.3? I do not see it in the latest official download link.

dragosct commented 6 years ago

Hi! You bought the theme from getbootstrap, right? Regards, Dragos

zDrakon commented 6 years ago

No I downloaded it from creativetim the free version online. Its version 2.0.2 still but same error here.

dragosct commented 6 years ago

Please, be more careful because you are on the material kit pro repo and it's confusing. We will made an update today for the Material Kit Free. Regards, Dragos