【发布时间】:2020-12-03 10:15:36
【问题描述】:
我正在关注 Andrew Mead 关于 Gatsby Bootcamp 的 youtube 教程,时间最长为 3:10:00
一切都很顺利,但是当我安装 gatsby-remark-relative-images 和 gatsby-remark-images 插件并将它们添加到 gatsby-config.js 文件以显示图像时,当我运行 npm run develop 时,我会收到如下所示的错误。
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
module.exports = {
/* Your site config here */
siteMetadata:{
title:'Gatsby Bootcamp',
author:'Author'
},
plugins: [
'gatsby-plugin-sass',
{
resolve:'gatsby-source-filesystem',
options:{
name: 'src',
path: `${__dirname}/src/`
}
},
'gatsby-plugin-sharp',
{
reslove: 'gatsby-transformer-remark',
options:{
plugins:[
'gatsby-remark-relative-images',
{
resolve:'gatsby-remark-images',
options:{
maxWidth:750,
linkImagesToOriginal: false
}
}
]
}
}
]
}
请帮忙!提前谢谢你。
【问题讨论】:
标签: gatsby gatsby-image gatsby-plugin gatsby-remark-image