Open jonybekov opened 4 years ago
What other Gatsby plugins do you have? Probably other plugin is overwriting the wrapper component.
I too am getting this error. The only other plugins I am using (that aren't used in the pagination example repo) are gatsby-plugin-google-analytics, gatsby-plugin-facebook-pixel, and gatsby-plugin-styled-components.
Using "gatsby-source-prismic-graphql": "3.4.0-beta.1",
EDIT: I resolved this by updating "gatsby-source-prismic-graphql" to "3.4.0-beta.2"
Whatever you guys changed in version 3.4.0-beta.2 please keep that change from 3.4.0-beta.1 because I too was able to fix this issue with the above change like @amihalopoulos
I think the issue came from gatsby-plugin-styled-components, I believe it does use the wrapper component. I also have gatsby-plugin-layout, which I believe also uses the wrapper component.
EDIT: update, issue still persists with the 3.4.0-bets.2 when in production.
I'm trying to fetch data dynamically using graphql. In the example https://github.com/birkir/gatsby-source-prismic-graphql#dynamic-queries-and-fetching here prismic.load() method is used to query dynamically. But when I tried to do it like example code I get this error:
However I couldn't find anything about prismic.load() method?
Here's my react component: