Open fabienheureux opened 3 years ago
After a very quick google search 🙄: https://github.com/birkir/gatsby-source-prismic-graphql/issues/4 I am digging it right now...
Well well well...I added gatsby-plugin-typescript
at the top of the plugins list in gatsby-config.js, it fixed the issue.
I removed it because it is built in in gatsby now, but it seems like it is added too late ? I will submit an issue to gatsby directly.
Closing.
Reopening because now it conflicts with this error I had in the past: https://github.com/gatsbyjs/gatsby/issues/25605
I will follow up here when I come to a solution...
The issue is reproducible in this example repo: https://github.com/l-etabli/wagtail-grapple-gatsby
I can reproduce the error using your example repo. I will check it out with one of my repos next.
I have also tried setting up the CORS headers and disabled the channels
settings, because these were issues that I have had in the past (https://github.com/GrappleGQL/wagtail-grapple/issues/81).
Ok, just checked with a repo of mine. Same issue.
Still experiencing this issue, has anyone had any success getting previews back up and running?
Same issue here... Help... Were you able to get a resolution to this @fabienheureux @IAmNatch
I've found the issue in the example repo @fabienheureux ..
In frontend/src/templates/blog.js, replace the query with... (remove graphql)
export const query = `
query($slug: String) {
wagtail {
page(slug: $slug) {
... on BlogPage {
title
}
}
}
}
`
Hey, I have the following error in the console when previewing a page in gatsby develop (and it fails with the build as well)
Any idea how could I debug it ? Thanks 👍 !