【发布时间】:2020-08-06 02:52:40
【问题描述】:
我阅读了https://www.gatsbyjs.org/docs/path-prefix/ 并将以下内容添加到 gatsby-configs.js。
{
pathPrefix: "/modules/custom/gatsby/gatsby-shopify-starter/public",
},
而且,我在终端上执行sudo gatsby build --prefix-paths。
但是,我收到了这条错误消息。
ERROR
The "path" argument must be of type string. Received an instance of Object
Error: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type s tring. Received an instance of Object
我做错了什么?
【问题讨论】: