当我从Github推出时,我的构建在Vercel中不断失败,说Eslint错误?

发布于 2025-01-27 19:43:20 字数 363 浏览 2 评论 0原文

我的github被连接到Vercel,每次我推动时,都应该部署。它正在运作应有的工作 - 但随后停止了。我看到的主要问题是

错误-ESLINT:.ESLINTRC.JSON中的Eslint配置无效: - 属性“ Parser”是错误的类型(Expection String/null/null,但GoT [“@Babel/eslint-parser”] )。

然后最后一行读取:

错误:用1

退出的命令“下一个构建”

我已经阅读了以前的帖子,并尝试了我所看到的所有建议来解决此问题,但我仍无法获得成功的构建。有建议吗?

My GitHub is hooked up to Vercel, and every time I push, it should deploy. It was working as it should - but then stopped. The main problem I am seeing is

error - ESLint: ESLint configuration in .eslintrc.json is invalid: - Property "parser" is the wrong type (expected string/null but got ["@babel/eslint-parser"]).

and then the last line reads:

Error: Command "next build" exited with 1

I have read through previous posts, and tried all things I've seen recommended to fix this issue, but I still cannot get a successful build. Any advice?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

盛夏尉蓝 2025-02-03 19:43:20

我相信您应该将“@babel/eslint-parser”用于解析器选项,没有括号,它应该只是一个字符串。

I believe you should just use "@babel/eslint-parser" for the parser option, no brackets, it should just be a string.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文