This topic contains 5 replies, has 3 voices, and was last updated by Sean Sean 1 year, 12 months ago.

Error: Import directives may not be used within control directives or mixins

  • fastrate
    fastrate
    Participant

    Posts: 3
    Member Reply #6373

    I have a problem with compiling sass file with compass and sass-lang compiler:

    >sass tmp\metronic_v4.5.6\theme\sass\global\components-md.scss –

    Error: Import directives may not be used within control directives or mixins.

    on line 7 of tmp/metronic_v4.5.6/theme/sass/global/_components.scss

    from line 8 of tmp\metronic_v4.5.6\theme\sass\global\components-md.scss

    I have a newest versions of sass and compass:

    >sass -v

    Sass 3.4.22 (Selective Steve)

    >compass -v

    Compass 1.0.3 (Polaris)

    Please advice on what to do get sass files compiled through compass.

     

    Sean
    Sean
    Keymaster

    Posts: 4451
    Support Staff Reply #6380

    Hi,

    Can you please try to use below attached new sass folder where the new sass version issues are fixed ?

    Thanks.

    Attachments:
    You must be logged in to view attached files.

    silverlitstudio
    Participant

    Posts: 1
    Member Reply #6398

    Hi,

    I had the same issue. (In fact there were a great many compiler errors.)
    The revised SASS attachment fixes everything. 😉

    Thanks.

    Sean
    Sean
    Keymaster

    Posts: 4451
    Support Staff Reply #6408

    Glad to hear that. Good luck with your project 🙂

    fastrate
    fastrate
    Participant

    Posts: 3
    Member Reply #6413

    Confirmed. Thx a lot.

    Sean
    Sean
    Keymaster

    Posts: 4451
    Support Staff Reply #6423

    You are welcome 🙂

You must be logged in to reply to this topic.