尝试通过 npm start/gatsby develop 启动服务器时,我的 gatsby 应用程序遇到问题。上一次使用,没有遇到任何问题,但是下次尝试启动时,错误显示为:
Error in "E:\MDX_Blog\mdxBlog\node_modules\gatsby-plugin-mdx\gatsby-node.js": Unexpected template string
Gatsby config.js
module.exports = {
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
name: `posts`,
path: `${__dirname}/src/posts/`,
},
},
`gatsby-plugin-mdx`,
`gatsby-plugin-transition-link`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
],
}