Closed theonlydaleking closed 5 years ago
Try this in your config.
options: {
defaultLayouts: {
default: require.resolve("./src/components/layout.js")
}
}
Damn it, i had that in the main project and missed it when i setup the config for the test repo. Disregard - closing due to Id-10-T
error
No problem. I'm glad I could help. I'm new to Gatsby and I'm neck-deep in setting all of this up myself.
yeah me too. Turns out on my main project, i had "defaultLayout" rather than "defaultLayouts" - god damn it.
Describe the bug It seems the default layout option isn't working
To Reproduce Just about followed word for word from this guy's issue #34 a while back.
npx -p gatsby-cli gatsby new site https://github.com/gatsbyjs/gatsby-starter-default
cd site
yarn add gatsby-mdx @mdx-js/mdx @mdx-js/tag @mdx-js/react
yarn develop
localhost:8000
Expected behavior Layout component is rendered
Screenshots can provide if needed
Additional context Repo that fails can be found here