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 |
Tags
- Javascript #코드스테이츠
- 코드스테이스
- 자바스크립트
- JavaScript
- 프로토타입
- 원시자료형
- html
- 코드스테이츠
- self reliance
- cta button
- WAI-ARIA
- 프론트엔드
- Prototype
- 개발자
- OOP
- 계산기
- CDD
- 객체지향
- 호스트인식
- css
- condestates
- frontend
- codestates
- cta버튼
- 회고
- Router
- css in js
- JS
- codestate
- 참조자료형
Archives
- Today
- Total
jh.nrtv
[error] vercel배포중 Module not found: Can't resolve 'perf_hooks' ReactJS 본문
Error
[error] vercel배포중 Module not found: Can't resolve 'perf_hooks' ReactJS
wlgus3 2023. 7. 14. 00:02Nextjs 와 TS로 작업한 프로젝트 배포중
Module not found: Can't resolve 'perf_hooks' in '/vercel/path0/node_modules/typescript/lib' 라는 오류가 발생했다.
perf_hooks라는 것은 내가 직접 import 하거나 사용한 hook이 아니기 때문에 해결하는 데에 애를 먹었다.
한참을 검색하던 중 아래의 링크 발견했다.
해결
아래와 같은 문구를 확인할 수 있었다.
"I get the exact same 3 warnings when I import anything from typescript"
결론적으로 논쟁은 있으나 Typescript에서 무언가 import 할 때에 빌드는 성공하지만 위와 비슷한 오류를 뱉어낸다고 한다.
나도 import {..} from 'typescript' 인 부분을 찾아서 지워주었고 해당 에러문구는 사라졌다.
'Error' 카테고리의 다른 글
[error] 배포시 미디어쿼리 적용 안되는 에러 (0) | 2023.07.17 |
---|---|
[error] Type error: 'result' is possibly 'null' (0) | 2023.07.15 |
[error]kakaoMap TypeError: window.kakao.maps.LatLng is not a constructor 에러 (0) | 2023.07.08 |
[트러블 슈팅] data.map()에서 element에 component 연결 (0) | 2023.04.10 |
Error- npm start 불가 에러 - There might be a problem with the project dependency tree. (0) | 2023.01.03 |