300x250
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 |
Tags
- 협업
- 프로젝트
- eslint 자동화
- git hooks
- chromatic
- Husky
- webpack
- prettier 자동화
- storybook
- IDL attributes
- 자바스크립트
- 유틸함수
- 우테코
- 크로마틱
- eslint에러 자동fix
- vscode
- 성능 베이스캠프
- string-width
- 이슈번호자동화
- 우아한테크코스
- import정리
- 클린코드
- react
- 클로저
- importOrder
- CSS
- JavaScript
- 프로젝트 카페인
- css instead of js
- 카페인
Archives
- Today
- Total
목록string-width (1)
FEB:)DAIN

var stringWidth = require('string-width') ^ Error [ERR_REQUIRE_ESM]: require() of ES Module ... code: 'ERR_REQUIRE_ESM' yarn storybook을 하니 갑자기 이러한 문제가 발생했다.🤔 절대 경로를 설정하다가 맞닥뜨린 에러라 절대 경로 때문인가 했더니 아니었다. 해결 방법은 다음과 같다. // package.json { ... "resolutions": { "jackspeak": "2.1.1" } } package.json 파일 안에 위 코드를 넣어도 오류가 날 경우, node_modules, yarn.lock을 지우고 다시 설치해 주면 된다. rm -rf node_modules yarn.lock yarn 다..
코딩/트러블 슈팅
2023. 8. 10. 15:45