반응형
IntelliJ, windows 환경에서 vue를 빌드할려고 "npm run build" 명령어를 실행시켰다. 그리고 다음과 같이 문제가 발생하였고 그리고 해결은 다음과 같이 하였습니다.
<문제>
PS E:\a\frontend> npm run serve
> frontend@2.1.0 serve
> vue-cli-service serve --open
INFO Starting development server...
40% building 178/206 modules 28 active ...uCollection\frontend\src\components\BaseDropdown.vue?vue&type=style&index=0&id=7445dd9c&scoped=true&lang=css&Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div(15, 16) or calc(15 / 16)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
2 │ $ct-scales: ((1), (15/16), (8/9), (5/6), (4/5), (3/4), (2/3), (5/8), (1/1.618), (3/5), (9/16), (8/15), (1/2), (2/5), (3/8), (1/3), (1/4)) !default;
│ ^^^^^
╵
src\assets\sass\lbd\mixins\_chartist.scss 2:20 @import
src\assets\sass\lbd\_mixins.scss 22:9 @import
src\assets\sass\light-bootstrap-dashboard.scss 18:9 root stylesheet
<해결방법>
PowerShell에서 "sass-migrator"을 설치하고 사용하면 된다.
PS E:\a\frontend> npm install -g sass-migrator
added 1 package in 2s
PS E:\a\frontend> sass-migrator division **/*.scss
반응형