You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm submitting a ...
[ ] bug report
[ ] feature request
[x] question about the decisions made in the repository
[ ] question about how to use this project
Summary
When deploying a Next.js app (13) on Cloudflare, they force using edge runtime, which is okay, but most of npm packages aren't supported, like axios, so it isn't compatible with Uniswap libs which are using it.
Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)
Simple solution would be to just switch from axios to browser native fetch.
The text was updated successfully, but these errors were encountered:
I'm submitting a ...
[ ] bug report
[ ] feature request
[x] question about the decisions made in the repository
[ ] question about how to use this project
Summary
When deploying a Next.js app (13) on Cloudflare, they force using edge runtime, which is okay, but most of npm packages aren't supported, like
axios
, so it isn't compatible with Uniswap libs which are using it.Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)
Simple solution would be to just switch from
axios
to browser nativefetch
.The text was updated successfully, but these errors were encountered: