Gatsby Slices undefined on 404 #37766
Unanswered
jodiedoubleday
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I currently generate a 404 page my gatsby-node along with every other pages on my site.
My pages use Gatsby Slices API to add a header and footer.
I keep getting
slice "undefined" for "header" slot not found
when viewing my custom 404 page, however, every other page works fine.I could add allowEmpty to the slice in the layout component, which enables the build to complete but it means I'm missing a header and footer on my 404 page.
This seems like it is done for a reason, I'm just not sure what the reason is or if there is a way around that.
Beta Was this translation helpful? Give feedback.
All reactions