我刚刚在入门模板中添加了几行代码,并使用npm install --save gatsby-source-graphql
安装了gatsby-source-graphql。
{
resolve: "gatsby-source-graphql",
options: {
typeName: "SWAPI",
fieldName: "swapi",
url: "https://api.graphcms.com/simple/v1/swapi",
refetchInterval: 60,
}
}
当我使用gatsby develop
时,控制台出现Cannot find module './batching/dataloader-link'
错误。我做错了什么或没有做过什么?