Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected int error on preview #24

Open
fabienheureux opened this issue Sep 10, 2020 · 9 comments
Open

Unexpected int error on preview #24

fabienheureux opened this issue Sep 10, 2020 · 9 comments

Comments

@fabienheureux
Copy link
Contributor

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 👍 !

image

@fabienheureux
Copy link
Contributor Author

After a very quick google search 🙄: birkir/gatsby-source-prismic-graphql#4
I am digging it right now...

@fabienheureux
Copy link
Contributor Author

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.

@fabienheureux
Copy link
Contributor Author

Reopening because now it conflicts with this error I had in the past: gatsbyjs/gatsby#25605

I will follow up here when I come to a solution...

@fabienheureux fabienheureux reopened this Sep 10, 2020
@fabienheureux
Copy link
Contributor Author

The issue is reproducible in this example repo: https://github.com/l-etabli/wagtail-grapple-gatsby

@tbrlpld
Copy link
Contributor

tbrlpld commented Nov 6, 2020

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 (torchbox/wagtail-grapple#81).

@tbrlpld
Copy link
Contributor

tbrlpld commented Nov 6, 2020

Ok, just checked with a repo of mine. Same issue.

@IAmNatch
Copy link

Still experiencing this issue, has anyone had any success getting previews back up and running?

@andrew-knott
Copy link

andrew-knott commented Jul 8, 2021

Same issue here... Help... Were you able to get a resolution to this @fabienheureux @IAmNatch

@andrew-knott
Copy link

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
        }
      }
    }
  }
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants