Using / for division is deprecated and will be removed in Dart Sass 2.0.0

2021-05-25 13:46:18

发生这个问题,是由于sass版本升级引起的,这个是旧的@nuxtjs/vuetify没有升级到这了nuxt系统报错

当然具体原因是由于sass一个小版本升级到这了大的变化。


解决办法,想办法修改sass到原来的版本。


我之所以出现这样的问题,是因为一直使用cnpm来进行包管理,cnpm快是快,缺点是并不生成类似yarn.lock,packagelock.json的文件,这样导致了,依赖包又了小的升级,每次cnpm就会导致依赖包跟着升级,就会出现意想不到的错误。


这个问题的解决办法是可以参考 

"/" as divide symbol deprecated in latest sass release - build errors


我的解决办法比较霸道


我重新用yarn来管理了包,并且在yarn.lock文件中,强项修改了被强行升级的sass版本。


不过这个问题只有我使用cnpm来管理包的会发生,其次就是搭建新的工程,用到@nuxtjs/vuetify的会遇到。


所以通过这次使用,我确定了,一定要禁止使用cnpm,npm和yarn也要只用一个。

  • 2017-11-10 00:06:15

    CORS: credentials mode is 'include'

    XMLHttpRequest cannot load http://localhost/Foo.API/token. The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'http://localhost:5000' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

  • 2017-11-19 00:17:51

    Java如何获取Date的“昨天”与“明天”示例代码

    最近在做项目的时候用到Date和Calendar比较多,而且用到的方式也比较全,突然想到一个问题,Java如何获取Date的"昨天"与"明天",也就是前一天和后一天呢?思考后写出了方法,想着万一以后用到,就总结出来,也方便有需要的朋友们参考借鉴,下面来一起看看吧。