Next.js Discord

Discord Forum

disabling-rules

Answered
West African Lion posted this in #help-forum
Open in Discord
West African LionOP
have tried both
{
  "extends": "next",
  "rules": {
    "react/no-unescaped-entities": "off",
    "@next/next/no-page-custom-font": "off"
  }
}

and
{
  "extends": "next/core-web-vitals"
}
Answered by West African Lion
both gives this error
View full answer

5 Replies

West African LionOP
both gives this error
Answer
West African LionOP
i tried using both
{
  "extends": "next/core-web-vitals next",
  "rules": {
    "react/no-unescaped-entities": "off",
    "@next/next/no-page-custom-font": "off"
  }
}
it just says next/core-web-vitals not found
❯ npm run build

> fly@0.1.0 build
> next build

  ▲ Next.js 14.2.5

   Creating an optimized production build ...
 ✓ Compiled successfully
   Linting and checking validity of types  ... ⨯ ESLint: Failed to load config "next/core-web-vitals next" to extend from. Referenced from: /home/idk/Documents/website/React/fly/.eslintrc.jsonLinting and checking validity of types    
 ✓ Collecting page data    
 ✓ Generating static pages (5/5)
 ✓ Collecting build traces    
 ✓ Finalizing page optimization    

Route (app)                              Size     First Load JS
┌ ○ /                                    35.8 kB         123 kB
└ ○ /_not-found                          875 B            88 kB
+ First Load JS shared by all            87.1 kB
  ├ chunks/5e.js        31.5 kB
  ├ chunks/a2f.js  53.7 kB
  └ other shared chunks (total)          1.9 kB


○  (Static)  prerendered as static content
West African LionOP
nvm i just needed to turn off already running server of next js to start npm run start