While trying to create pages in gatsby-node, I received this build error

ERROR #11321 PLUGIN “gatsby-node.js” threw an error while running the onCreateNode lifecycle: Cannot read property ‘replace’ of undefined 25 | const { createNodeField } = actions; 26 | if (node.internal.type === ‘MarkdownRemark’) { > 27 | const slug = createFilePath({ node, getNode, basePath: ‘content’ }); | ^ 28 | createNodeField({ 29 | node, 30 |…

Details