-
Notifications
You must be signed in to change notification settings - Fork 17
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
Universal user agent not working in next.js edge runtime #77
Comments
very odd. I'd like to
I'm open to a pull request for that. But right now I feel like this is a problem that should be fixed upstream in next.js, not here. |
Hi Gregor, sorry I bothered you. I reported cross issue on next.js platform - vercel/next.js#54739 To answer your questions and give you more context: For some reason Solution should be different from my code - more strict check for Feel free to close this ticket. I find this issue and someone might stumble upon it too, made it just for visibility. |
thank you! If anything changes, please let me know! |
I ran into the problem now as well, I'll backport it to v6 as that is the one currently used by latest @octokit. Thanks again @marcincodes and @jaschaephraim ❤ |
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
[email protected]
for the project I'm working on.Universal user agent is used by Octokit but when importing it in next.js edge runtime fails. It seems that there
provess.version
isundefined
. Following code works and resolve issue with using Ocotkit there, but it can be not sufficient. Feel free to let me know how this should be solved, and I'm happy to help on fix.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: