본문 바로가기
프로그래밍/개발 상식 등

Parsing error: Cannot find module 'next/babel' 해결

by 숙님 2022. 12. 6.
728x90

방법

.eslintrc 파일에 들어가서 아래를 넣는다 

{
  "extends": ["next/babel","next/core-web-vitals"]
}

수정을 완료한 상황

 

관련  url 

 

Parsing error : Cannot find module 'next/babel'

I have been encountering this error on every single new Next.js project that I create. The page can be compiled without any problem, it just keeps on showing as error on the first line in every js ...

stackoverflow.com

 

 

문제상황 

next.js를 사용할 때 마다 겪고 있는 문제이다 

위의 방법을 통해 해결했다

앞으로도 문제 생기면 이 글에 다시 들어와서 확인해야겠다 

댓글