【发布时间】:2021-03-18 14:32:35
【问题描述】:
我正在尝试从 Gatsby 2 升级到 3。我从 package.json 中删除了所有依赖项并安装了 Gatsby。我目前正在尝试运行gatsby develop,但出现错误:
'“路径”参数必须是字符串类型。收到一个 Object 的实例
知道如何解决这个问题吗?我不确定我需要分享什么,但这是我的gatsby-config.js。
// Gatsby-config.js
module.exports = {
siteMetadata,
plugins: [
{
resolve: `gatsby-plugin-mdx`,
options: {
[],
extensions: [`.mdx`, `.md`]
}
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Tyler's Blog`,
short_name: `TylersBlog`,
start_url: `/`,
background_color: `#ffffff`,
theme_color: `#663399`,
display: `standalone`,
icon: `content/favicon.svg`,
},
},
],
}
【问题讨论】: