首页 > 解决方案 > 构建 Next.js 项目时出错:无法加载配置“react-app”以扩展自

问题描述

我不能npm run build我的下一个项目给我这个Error: Failed to load config "react-app" to extend from。参考:

type: 'Error',
  messageTemplate: 'extend-config-missing',
  messageData:
   { configName: 'react-app',
     importerName:
      '/home/kh/development/projects/nextproject/.eslintrc.json' } }

和我的.eslintrc.json档案

{
  "plugins": ["testing-library", "jest-dom"],
  "extends": [
    "react-app",
    "react-app/jest",
    "plugin:testing-library/react",
    "plugin:jest-dom/recommended"
  ]
}

标签: next.jseslint

解决方案


推荐阅读