【发布时间】:2022-01-23 23:02:00
【问题描述】:
尝试运行 gatsby build 并收到此错误消息。
失败我们遇到了一个错误:Minified React 错误 #31;访问https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=object%20with%20keys%20%7Bid%2C%20frontmatter%2C%20parent%7D 获取完整信息 消息或使用未缩小的开发环境来获取完整错误和其他有用的警告。
要查看我尝试过的完整消息:
"GATSBY_ENV=development && gatsby build --no-uglify"
但这并没有改变。
在 reactjs.org 留言
对象作为 React 子对象无效(发现:对象带有键 {id, frontmatter, parent})。如果您打算渲染一组子项,请改用数组。
这个项目中的许多对象都有这些键,所以我无法找到问题所在。
谁能给点建议?
【问题讨论】: