Parsing error: Cannot find module 'next/babel' in Next

Parsing error: Cannot find module 'next/babel' in Next

·

1 min read

The easy way of fixing this issue by editing the eslintrc file.

Fixing .eslintrc file

Add the following code to the eslintrc file.

{
  "extends": ["next/babel", "next/core-web-vitals", "prettier"],
  "rules": {
    "react/no-unescaped-entities": "off",
    "@next/next/no-page-custom-font": "off"
  }
}

After adding the codes, the errors will eventually go.