티스토리 뷰
문제
Parsing error: Your application tried to access next, but it isn't declared in your dependencies; this makes the require call ambiguous and unsound.
next.config,js, jest.config.js, jest.setup.js 파일에서 위와 같은 에러가 발생 하였다.
다음 링크를 통해 eslint가 원인임을 알 수 있었다.
해결방법
해결 방법은 간단하다. next/babel과 관련된 설정이 eslint에 누락이 된것임으로 preset에 next/babel을 추가 시켜주면 된다.
{
"extends": ["next/core-web-vitals", "prettier", "next/babel"],
...// 추가 설정
}
'사이드 프로젝트' 카테고리의 다른 글
Nextjs error boundary 적용하기 (0) | 2023.09.06 |
---|---|
[storybook] React is not defined 문제 해결하기 (0) | 2023.04.12 |
React context를 활용하여 modal state 관리하기 (0) | 2023.04.01 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- nextjs errorboundary
- 백준 22862
- storybook scss이슈
- serverless 배포
- 서비스 디자인 패턴
- React useCallback
- 백준 1600번
- 불량 사용자 자바스크립트
- 가장 긴 짝수 연속한 부분 수열
- 선언적 UI
- 자바스크립트
- react suspense
- storybook react is not defiend 해결
- CSS
- storybook scss import
- 표현 가능한 이진트리
- node 버전 마이그레이션
- serverless nestjs
- node version yarn berry
- 에러핸들링
- 1600 파이썬
- 서버사이드 error handling
- nextjs 에러핸들링
- React useMemo
- 관심사 분리하기
- 미로탈출 명령어
- useCallback과 useMemo 사용
- suspense 장점
- javascript
- nestjs 배포하기
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함