티스토리 뷰
새로운 프로젝트를 시작하면서
Vue-Bootstrap 템플릿을 사용하게 되었다.
템플릿을 사용하면서 필요한 package를 install 하는 중에 sass 관련 에러가 발생했다.
아래 sass의 공식문서에 따르면
node-sass뿐만 아니라 libSass라는 라이브러리를 더이상 사용하지 않는다는 내용이었다.
그 대신 Dart-Sass라는 패키지로 대체하여 사용하라고 권장하고 있다.
node-sass와 LibSass를 더이상 사용하지 않는 이유에 대해서는 아래 Reference를 확인해보면 좋을 것 같다.
내가 사용하려는 템플릿에서는 node-sass를 사용하고 있었지만 이는 현재 m1 맥북을 사용하는 환경에서는 설치가 되지 않아 에러가 나는 것이었다.
내가 해결한 방법은 권장사항과 같이 node-sass대신 Dart-sass를 설치하였고,
Dart-sass와 node-sass간 약간의 문법적 차이가 있는 부분을 변경시켜주었다.
그 결과 성공적으로 패키지를 설치할 수 있었다.
# Reference
Sass: LibSass is Deprecated
LibSass is Deprecated Posted 26 October 2020 by Natalie Weizenbaum After much discussion among the Sass core team, we’ve come to the conclusion that it’s time to officially declare that LibSass and the packages built on top of it, including Node Sas
sass-lang.com
Sass: Dart Sass
Dart Sass is the primary implementation of Sass, which means it gets new features before any other implementation. It's fast, easy to install, and it compiles to pure JavaScript which makes it easy to integrate into modern web development workflows. Find o
sass-lang.com
'Errors' 카테고리의 다른 글
[ISSUE] API 중첩 호출 (0) | 2022.03.31 |
---|---|
[ISSUES] Axios Post 요청시 401: Unauthorized 에러 발생 이슈 (0) | 2022.03.27 |
[Jest/Vue.js] Router Testing 관련 에러 (0) | 2022.02.09 |
Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style' (0) | 2022.01.06 |
React 페이지 전환시 Reload 이슈 (5) | 2021.11.12 |
- Total
- Today
- Yesterday
- Preloading
- python
- redux
- Vuex
- programmers
- 백준
- redux-thunk
- bundler
- AxiosInterceptor
- v-for
- error
- 프로그래머스
- Repository Pattern
- GraphQL
- SPA
- 파이썬
- webpack
- js
- reactrouter
- Transpiler
- SOAP API
- 알고리즘
- Vue.js
- TypeScript
- 상호평가
- React
- React.memo
- 문제풀이
- clean code
- Vue
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |