TypeError:仅支持绝对网址

时间:2020-11-06 17:27:28

标签: incompatibletypeerror

我尝试用shopifly连接gatsby,但出现以下错误。 gatsby-source-shopify / [BumpleBooks] startin 错误 错误在获取数据时发生错误 错误“ gatsby-source-shopify2”引发了错误

仅支持绝对URL 此错误使站点无法加载其他需要加载的文件。 以下是我的配置文件插件部分: 插件:[ gatsby-plugin-react-helmet, { 解决:gatsby-source-filesystem, 选项:{ 名称:images, 路径:${__dirname}/src/images, }, }, { 解决:gatsby-source-shopify2, 选项:{ //您的Shopify商店的域名。 shopName:[BumpleBooks], //店面访问令牌 accessToken:[6c35ea0c9555d3af8b9b2e77ee78fffc], }, }, gatsby-transformer-sharpgatsby-plugin-sharp, { 解决:gatsby-plugin-manifest, 选项:{ 名称:gatsby-starter-default, short_name:starter, start_url:/, background_color:#663399, theme_color:#663399, 显示:minimal-ui, 图标:src/images/gatsby-icon.png,//此路径是相对于站点根目录的。 }, }, ], }

在jason中,我加载了gatsby-source-shopify文件,然后尝试了gatsby-source-shopify2文件。都是同样的问题。也放入shopify购买。 我已经尝试了一切,但它们没有连接,因此不能使用graphql,因为allshopifly没有加载。 我应该怎么做? 谢谢, 仁

0 个答案:

没有答案