❗️Parsing error : Cannot find module 'next/babel’ 오류 해결

2024. 5. 8. 18:02·Error
반응형
{
  "extends": ["next/babel", "next/core-web-vitals"]
}

Error 발생

❗️Parsing error : Cannot find module 'next/babel’

에러표시가 발생해도 웹은 정상적으로 동작했지만 코드상에서 에러표시가 너무 보기가 싫었다.

next/babel 을 새로 설치하는 방법도 소용이 없었다.

해결방법

- eslintrc.json -

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

extends 에 next/babel 을 추가하는 것으로 에러표시가 사라졌다. 어차피 eslint 오류라 별 상관 없는데 에러가 왜 발생하는지는 나도 잘 몰루?, 혹시 발생하더라도 바로 해결방법을 적용하지말고 프로젝트를 껐다 다시 켜보면 에러표시가 나오지 않을 수도 있으니 바로 적용해보지는 말자

 

반응형

'Error' 카테고리의 다른 글

[React-Native CLI] react-native-vector-icons 설치에러 해결 과정  (0) 2025.01.13
[ React-Native CLI ] 설치후 Build 안되는 에러해결 방법  (0) 2024.12.25
[ React-Native CLI ] 개발 오류 ❗️Execution failed for task ':react-native-safe-area-context:compileDebugKotlin'.  (2) 2024.12.25
Error: Element type is invalid: expected a string (for built-in components) or a class/function❗️  (1) 2024.06.26
Next.js 에❗️TypeError: Cannot read properties of undefined (reading 'prototype')  (1) 2024.05.13
'Error' 카테고리의 다른 글
  • [ React-Native CLI ] 설치후 Build 안되는 에러해결 방법
  • [ React-Native CLI ] 개발 오류 ❗️Execution failed for task ':react-native-safe-area-context:compileDebugKotlin'.
  • Error: Element type is invalid: expected a string (for built-in components) or a class/function❗️
  • Next.js 에❗️TypeError: Cannot read properties of undefined (reading 'prototype')
WHITE_FROST
WHITE_FROST
개발공부리뷰블로그
    반응형
  • WHITE_FROST
    하얀하얀IT
    WHITE_FROST
  • 전체
    오늘
    어제
    • 분류 전체보기 (119)
      • Stack (43)
        • Next.js (7)
        • React (12)
        • React-Native (15)
        • TypeScript (0)
        • Python (2)
        • JavaScript (2)
        • Android (1)
        • DB (2)
        • JAVA (1)
      • Obsidian (1)
      • AI (3)
      • AI Tools (0)
      • Tools (0)
      • Mac (0)
      • Error (7)
      • 알고리즘 정리 (6)
      • 알고리즘 문제풀이 (46)
      • 공부일상 (4)
      • 개발 도구 & 라이브러리 (0)
      • 정보처리기사 (0)
      • 기타 (6)
      • Tip (2)
  • 블로그 메뉴

    • 홈
    • 태그
    • 미디어로그
    • 위치로그
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    ios
    boj
    react-native
    티스토리챌린지
    D2
    오블완
    알고리즘
    mongoDB Atlas
    java
    ReactHook
    react-native-maps
    백준
    코딩테스트
    Next.js
    d1
    SWEA
    리액트네이티브
    react
    React-Native cli
    코테준비
    코테
    프로그래머스
    error
    React Hooks
    mongodb cloud
    Python
    reactnative
    javascript
    hooks
    Expo
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.5
WHITE_FROST
❗️Parsing error : Cannot find module 'next/babel’ 오류 해결
상단으로

티스토리툴바