【问题标题】:A get this error "TypeError: Cannot destructure property 'components' of 'object null' as it is null."收到此错误“TypeError:无法解构'object null'的属性'components',因为它为null。”
【发布时间】:2022-01-26 05:27:17
【问题描述】:

TypeError:无法解构“object null”的属性“components”,因为它为 null。当我对 Next.js 项目运行“yarn dev”时?

【问题讨论】:

  • 请提供足够的代码,以便其他人更好地理解或重现问题。

标签: object null next.js components typeerror


【解决方案1】:

检查_app.js 文件的子级。首先使用虚拟标签渲染它,然后传递您的实际数据

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-05-26
    • 1970-01-01
    • 2023-01-12
    • 2021-03-08
    • 2021-05-11
    • 1970-01-01
    • 1970-01-01
    • 2015-06-18
    相关资源
    最近更新 更多