DEV Community

Gld
Gld

Posted on

Answer: Parsing error : Cannot find module 'next/babel'

Note: You don't need to create extra .babelrc file

In your NextJS Project you have this file , named .eslintrc.json In this file

You have following code

{
  "extends": "next/core-web-vitals"
}

Replace it with

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

Note: If you only replace with

{
   "extends": ["next/babel"]

Top comments (0)