[英]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.