next.js 下一篇:sanity:错误:表达式[closed]后应为“]”

yi0zb3m4  于 2023-05-28  发布在  其他
关注(0)|答案(1)|浏览(118)

**关闭。**此题需要debugging details。目前不接受答复。

编辑问题以包括desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem。这将帮助其他人回答这个问题。
3天前关闭。
Improve this question
我正在学习Next/Sanity教程(https://www.youtube.com/watch?v=OcTPaUfay5I),由于以下未处理的运行时错误,我被困在44:25,其中应该有一个“]”,并且调用堆栈中有一个节点模块列表。有人能帮我弄清楚为什么我收到这个错误或在哪里纠正代码问题?
该项目可以在https://github.com/BryanMF87/next-sanity-portfolio上查看

qzwqbdag

qzwqbdag1#

您必须将sanity-utils中的groq查询更改为

groq`*[_type == "project"]

相关问题