🌐
GitHub
github.com › vercel › next.js › issues › 40469
ESLint fails for next/core-web-vitals · Issue #40469 · vercel/next.js
July 19, 2022 - Error: Failed to load config "extends: next/core-web-vitals" to extend from.
Author   Erythros
🌐
GitHub
github.com › vercel › next.js › issues › 64114
New ESLint "flat" configuration file does not work with `next/core-web-vitals` · Issue #64114 · vercel/next.js
April 5, 2024 - Current behavior: It is impossible to use the new ESLint "flat config" in a Next.js project (due to next/core-web-vitals). Expected behavior: It should work. ... In case it is not clear, I have imported ...compat.extends("next/core-web-vitals") in page.tsx only for the purpose of showing that it does not work.
Author   hb20007
🌐
Stack Overflow
stackoverflow.com › questions › 74154509 › eslint-error-couldnt-find-the-config-next-core-web-vitals-to-extend-from
reactjs - Eslint error ,,couldn't find the config "next/core-web-vitals" to extend from" - Stack Overflow
After running command ,,npm run lint" (lint stands for ,,next lint"), I get error.: Failed to load config "next/core-web-vitals" to extend from. Referenced from: /Users/filiptat...
🌐
Answer Overflow
answeroverflow.com › m › 1196590792496648272
ESLint: Failed to load config "@repo/eslint-configuration/.eslintrc.nextjs.cjs" to extend from. - Theo's Typesafe Cult
October 6, 2023 - extends: [ "next/core-web-vitals", "@repo/eslint-config/.eslintrc.base.cjs" ], }; module.exports = config; /** @type {import("eslint").Linter.Config} */ const config = { extends: [ "next/core-web-vitals", "@repo/eslint-config/.eslintrc.base.cjs" ], }; module.exports = config; packages/eslint-configuration/package.json ·
🌐
GitHub
github.com › vercel › next.js › discussions › 24900
ESLint in Next.js and Create Next App · vercel/next.js · Discussion #24900
@SalahAdDin No, plugin:@next/next/recommended will not include next/core-web-vitals. If you really need next/core-web-vitals, you should only use next/core-web-vitals at extends instead.
Author   vercel
Find elsewhere
🌐
LogRocket
blog.logrocket.com › home › troubleshooting a next.js app with eslint
Troubleshooting a Next.js app with ESLint - LogRocket Blog
June 4, 2024 - const prettierConfig = require("./.prettierrc.js"); module.exports = { env: { browser: true, commonjs: true, es2021: true, node: true, }, extends: [ "eslint:recommended", "plugin:react/recommended", "plugin:react-hooks/recommended", "plugin:prettier/recommended", "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended", "next/core-web-vitals", ], parserOptions: { ecmaFeatures: { jsx: true, }, ecmaVersion: 12, sourceType: "module", }, plugins: ["react"], rules: { // Possible errors "no-console": "warn", // Best practices "dot-notation": "error", "no-else-return":
🌐
GitHub
github.com › vercel › next.js › issues › 73968
Failed to load plugin 'react-hooks' declared in ' » eslint-config-next/core-web-vitals » Cannot find module 'eslint-plugin-react-hooks' · Issue #73968 · vercel/next.js
October 26, 2024 - import { dirname } from 'path'; import { fileURLToPath } from 'url'; import { FlatCompat } from '@eslint/eslintrc'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); const compat = new FlatCompat({ baseDirectory: __dirname, }); const eslintConfig = [ ...compat.config({ extends: ['next/core-web-vitals', 'next/typescript', 'prettier'], }), ]; export default eslintConfig;
Author   J4v4Scr1pt
🌐
Witch
witch.work › en › posts › blog-eslint-pnpm-bugfix
Reasons and Solutions for eslint-config-next Failing in Next.js Projects Using pnpm
April 16, 2025 - Since @next/next/core-web-vitals references additional eslint-plugin configurations, an error will emerge starting with pnpm v10. Lastly, let’s look into the index.js file of eslint-config-next, which uses similar eslintrc settings. // next.js/packages/eslint-config-next/index.js // Complex code for default settings is omitted module.exports = { extends: [ 'plugin:react/recommended', 'plugin:react-hooks/recommended', 'plugin:@next/next/recommended', ], plugins: ['import', 'react', 'jsx-a11y'], rules: { 'import/no-anonymous-default-export': 'warn', // ...
🌐
Next.js
nextjs.org › docs › app › api-reference › config › eslint
Configuration: ESLint | Next.js
2 weeks ago - Enable the eslint-config-next/core-web-vitals configuration in your ESLint config.
🌐
Reddit
reddit.com › r/nextjs › eslint issues when using create-next-app --use-pnpm are driving me crazy!
r/nextjs on Reddit: Eslint issues when using create-next-app --use-pnpm are driving me crazy!
February 17, 2025 -

I've been struggling to find out why this happens for the last hour! These issues exist in both VS Code and Webstorm:

  • initialize a project with npx create-next-app, eslint, typescript and all -> the ESLint plugins for both VSCode and Webstorm works fine, shows warnings etc.

  • initialize a projext with npx create-next-app --use-pnpm, eslint, ts -> the ESlint plugins for both misbehave:

    • VSCode -> throws no warnings no matter what .tsx file I open and change stuff

    • Webstorm -> throws errors like "Error: Failed to load plugin 'react-hooks' declared in ' » eslint-config-next/core-web-vitals" and the ""fix"" I've found atm is to explicitly install `@next/eslint-plugin-next` as a dev dependency

Why does pnpm not love me? Is it pnpm's fault, create-next-app's fault for how it handles pnpm, or something else?

🌐
GitHub
github.com › vercel › next.js › discussions › 62879
Eslint with `next/core-web-vitals` cannot work properly in my VSCode · vercel/next.js · Discussion #62879
Upon investigation, I discovered that the log (shown below) indicates that the core-web-vitals extension failed to load properly in my environment. How can I address this issue? I would be appreciated for your help. 2024-03-05T14:23:54.216Z eslintrc:config-array-factory Loading {extends:"next/core-web-vitals"} relative to G:\Github\project-next\my-app\.eslintrc.json 2024-03-05T14:23:54.223Z eslintrc:config-array-factory package.json was not found: Cannot find module 'eslint-config-next/core-web-vitals/package.json'
Author   vercel
🌐
Reddit
reddit.com › r/nextjs › pnpm creating eslint issues
r/nextjs on Reddit: pnpm creating eslint issues
March 4, 2025 -

Hello,

Today I decided to try out the better version of npm, which is pnpm, but I have already some very weird issues with it, especially when installing Next.js.

Basically I run pnpm create next-app , everything works fine until I open the project and realize that I have the following error:

Error: Failed to load plugin 'react-hooks' declared in ' » eslint-config-next/core-web-vitals »

I look for solutions on the internet and I see that I have to manually install the eslint-plugin-react-hooks package. It's fixed. Wait. This time another error pops up now and it's:

Error: Failed to load plugin '@next/next' declared in ' » eslint-config-next/core-web-vitals »

So I have to do the same thing and install the next/eslint-plugin-next package.

Everything works fine now but surely this is not a normal behavior and I should not have to install every time 2 additional packages when creating a brand new default Next.js project using pnpm? I tried doing it with npm and I have 0 issues.

If you have any solutions or ideas about where it might be coming from, feel free to tell me.

🌐
Paulintrognon
paulintrognon.fr › blog › typescript-prettier-eslint-next-js
Start a clean Next.js project with TypeScript, ESLint and Prettier
// .eslintrc.json { // ... "extends": [ "next/core-web-vitals", "plugin:@typescript-eslint/recommended", "prettier" // Add "prettier" last. This will turn off eslint rules conflicting with prettier. This is not what will format our code.
🌐
GitHub
github.com › vercel › next.js › discussions › 58714
What's the differernces from next/core-web-vitals and eslint-config-next and eslint-plugin-next? · vercel/next.js · Discussion #58714
There was an error while loading. Please reload this page. ... First of all, when you put { "extends": "next" } in eslint, eslint will be using config eslint-config-next (if it is installed). When you do { "extends": "next/core-web-vitals" }, eslint will use config eslint-config-next/core-web-vitals which includes eslint-config-next
Author   vercel