Closed mehtavishwa30 closed 5 years ago
you probably need path: path.join(__dirname, 'src/pages')
but it's hard to say without seeing an example repo. The problem you're running into is that the ${__dirname}/src/pages
ends up looking for a directory that doesn't exist. You could log out that string to see where it's looking for the directory and change it to where you want it to look. The other possibility is that it's looking in the right place, but src/pages
doesn't exist and you need to mkdir -p
it in onPreBootstrap
or in your starter.
On running the
yarn workspace starter develop
command it returned the following path not found error.starter is my workspace name for the site that I am building for the Gatsby Themes.
Following is the code for the
gatsby-plugin-page-creator
ingatsby-config.js
fileIt says the path passed for the plugin is not found in my device directory. Please help in resolving this error.
Thanks!