error on page : https://react-query.tanstack.com/examples/nextjs needs "web-streams-polyfill " in codesandbox for Ky to work... #2122
Send to my agentDescribe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Go to 'https://react-query.tanstack.com/examples/nextjs'
- Click on 'Nextjs SSG'
- Scroll down to '....'
- 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
Hello Dominik,
As i said, I am quite a newbie and have no idea about your "PR" request proposal. Hope I could help you with this, but sincerely I have no clue about what your are saying.
Keep on the good work and thank you so much for your good work,
Marc
On Wed, Apr 14, 2021 at 5:22 PM Dominik Dorfmeister < @.***> wrote:
very good find. would you like to PR that please?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <https://github.com/tannerlinsley/react-query/issues/2122#issuecomment-819603862>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/APLLEUUKCGQIUUSOAPROR2DTIWXMPANCNFSM425TBCNQ> .
okay, no worries. So the way open source works is that everyone can contribute. To do that, you need to fork the repository to your own account (top right button in github), then create a branch. You can then implement the fix, in this case it's just adding that dependency to
package.jsonin the example. After that, you can make a PR (pull request) from your branch to this repository - just go to the Pull Requests tab here and click onNew Pull Request.make sure to adhere to the commit message convention, you can read about it here: https://github.com/tannerlinsley/react-query/blob/master/CONTRIBUTING.md#commit-message-conventions
I think this is a good first issue if you want to get started with contributing to open source :)
TkDodo added labelsgood first issue
Wow thanks...I ll look into on Monday...
Le jeu. 15 avr. 2021 à 09:58, Dominik Dorfmeister @.***> a écrit :
okay, no worries. So the way open source works is that everyone can contribute. To do that, you need to fork the repository to your own account (top right button in github), then create a branch. You can then implement the fix, in this case it's just adding that dependency to package.json in the example. After that, you can make a PR (pull request) from your branch to this repository - just go to the Pull Requests tab here and click on New Pull Request.
make sure to adhere to the commit message convention, you can read about it here: https://github.com/tannerlinsley/react-query/blob/master/CONTRIBUTING.md#commit-message-conventions
I think this is a good first issue if you want to get started with contributing to open source :)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <https://github.com/tannerlinsley/react-query/issues/2122#issuecomment-820209032>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/APLLEUXBFK3AIWYRKVQW23LTI2MBVANCNFSM425TBCNQ> .
hey, for some reason the CodeSandbox example is now entirely missing from the Next.js example page.
Not sure what you mean - it’s still here: https://react-query.tanstack.com/examples/nextjs
yeah, now it's there. sorry for a false ping then. 12 hours ago the CodeSandbox threw an error that said that the example did not exist...
TkDodo closed this
:tada: This issue has been resolved in version 3.16.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
tannerlinsley added labelsreleased
Sign in to join this conversation.
very good find. would you like to PR that please?