Skip to content

error on page : https://react-query.tanstack.com/examples/nextjs needs "web-streams-polyfill " in codesandbox for Ky to work... #2122

@lemarcgagnon

Description

@lemarcgagnon

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://react-query.tanstack.com/examples/nextjs'
  2. Click on 'Nextjs SSG'
  3. Scroll down to '....'
  4. 502 Bad Gateaway

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g.Linux]
  • Browser: [e.g. chrome]
  • Version: [e.g. 22]

Additional context
Although I am quite a newbie, i saw that we could resolve the bad Gate Away 502 is for "Ky" by adding this dependency to the Dependencies listing:

npm install web-streams-polyfill --save

as per https://www.npmjs.com/package/ky-universal instructions.

then the whole thing works just fine.

Yours,

Marc

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions