getting error after ugrading to sass-3.1.8

后端 未结 3 1955
独厮守ぢ
独厮守ぢ 2020-12-17 01:36

after upgrading to sass-3.1.8 form sass-3.1.7 I get this error:

 Functions may only be defined at the root of a document.

any Idea how I ca

3条回答
  •  余生分开走
    2020-12-17 02:08

    Ok Here is what I come up with:

    SASS team decided to make a change (in this case "Functions may only be defined at the root of a document.") that made some plugins incompatible. in my case it was bourbon library. I made a ticket on github homepage of the bourbon and the owner updated the code and released a new version that's working with latest api.

    I think this change should have got a bigger version bump to indicate the api change.

提交回复
热议问题