Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- JOYUI
- React
- 이클립스
- Sass
- Adobe
- Eclipse
- MUIbase
- SSR
- css
- ref전달하기
- ref
- TaskRunner
- VW
- gulp
- tomcat
- CSS3
- 1분코딩
- frontend
- 정적웹사이트
- 보일러플레이트
- java
- npm
- next.js
- Study
- MUISystem
- 자바스크립트
- error
- JavaScript
- animation
- html
Archives
- Today
- Total
프론트 개발 블로그
Error: Node Sass version 5.0.0 is incompatible with ^4.0.0. 본문
Error: Node Sass version 5.0.0 is incompatible with ^4.0.0.
문제발생
CRA 에서 npm install node-sass 설치 시 위와 같은 에러 문구가 발생하였다.
왜?
CRA 사용 시 미리 설치된 sass-loader 에서 발생하는 에러로 node-sass@latest 는 v.5.0.0 버전이고 (내가 설치한 node-sass 가 5.0.0 버전) sass-loader는 v4.0.0을 예상하므로 버전이 호환되지 않음으로 생긴 에러라고 한다. -> stackoverflow 인용
노드 버전에 지원 정책에 따라 지원되는 node-sass 버전이 다르므로 node-sass 설치 시 노드 버전을 확인해봐야 한다.
github.com/sass/node-sass/releases
해결방법
1. npm uninstall node-sass
2. npm install node-sass@4.14.1
또는 yarn 사용하는 경우
1. yarn remove node-sass
2. tarn add node-sass@4.14.1
반응형
'React' 카테고리의 다른 글
| MUI - material UI, MUI base, JOY UI, MUI System 차이 (1) | 2025.07.25 |
|---|---|
| [React] 절대 경로 사용하여 모듈 가져오기 (0) | 2021.03.11 |
| windowing 라이브러리 (0) | 2021.01.05 |
| Ref 와 DOM (0) | 2020.12.17 |
| Forwarding Refs (React.forwardRef) (0) | 2020.12.14 |