当我从Github推出时,我的构建在Vercel中不断失败,说Eslint错误?
我的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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信您应该将“@babel/eslint-parser”用于解析器选项,没有括号,它应该只是一个字符串。
I believe you should just use "@babel/eslint-parser" for the parser option, no brackets, it should just be a string.