简体   繁体   English

ESLint:无法加载配置“next/babel”以扩展

[英]ESLint: Failed to load config "next/babel" to extend from

I am trying to generate build of my next-js app by running "npm run build".我正在尝试通过运行“npm run build”来生成我的 next-js 应用程序的构建。 but unfortunately i am getting this error everytime.但不幸的是我每次都收到这个错误。 error getting while running npm run build here is my.eslintrc.json file .eslintrc.json and.babelrc .babelrc .运行 npm 时出现错误在这里运行构建是 my.eslintrc.json 文件.eslintrc.json和 .babelrc .babelrc

Changing next/babel in .eslintrc to next worked for the warning to disappear..eslintrc中的next next/babel更改为 next 可以使警告消失。 However, in my vscode a bunch of new errors came up related Parsing error: Cannot find module 'next/babel' As a result this answer is a great fit for this question as well: https://stackoverflow.com/a/68193974/13943679但是,在我的 vscode 中出现了一堆与解析错误相关的新错误:找不到模块“next/babel”因此这个答案也非常适合这个问题: https://stackoverflow.com/a/68193974 /13943679

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 eslint 无法加载要扩展的配置“react-app”。 在项目中进行更改时 - eslint Failed to load config "react-app" to extend from. when making changes in project 无法加载配置“更漂亮”以从 - Failed to load config "prettier" to extend from 无法加载配置“react”以从 - Failed to load config "react" to extend from 如何扩展父 babel 配置? - How to extend a parent babel config? 语法错误:错误:无法加载要扩展的配置“ckeditor5”。 将 CKEditor 导入 Vuejs 时 - Syntax Error: Error: Failed to load config “ckeditor5” to extend from. While importing CKEditor to Vuejs 如何解决无法加载配置“更漂亮”以进行扩展。 在反应 Js - How to Resolve Failed to load config “prettier” to extend from. in react Js 如何在具有现有 eslint 配置的项目中将 eslint 与 Next.js 一起使用? - How to use eslint with Next.js in a project with an existing eslint config? 来自codacy的Eslint配置文件 - Eslint config file from codacy vite 无法从 vite.config.js 加载配置, - vite failed to load config from vite.config.js, Next.js - 即使在更新节点 js 后也无法加载 next.config.js? - Next.js - Failed to load next.config.js even after updating node js?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM