-
Notifications
You must be signed in to change notification settings - Fork 186
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
Error fetching trade #627
Comments
My vite.config.ts
|
Same issue with me not sure if its a Vite thing. Got to launch a frontend for my token was thinking could add a widget before liquidity pool is set since short on time. |
Same |
We are facing the same issue with the same configuration. Any solution? |
The only solution that helped me was to implement my widget using the SDK-v3 |
May I ask you to share the code with me? I would appreciate a lot if you
could just give a direction of what I need to change for my own project
(provider/rpc addresses etc.)
среда, 31 января 2024 г. пользователь HarlamovEvgeniy <
***@***.***> написал:
… The only solution that helped me was to implement my widget using the
SDK-v3
—
Reply to this email directly, view it on GitHub
<#627 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXWUE23TC5PMYUAKVDQ6CTDYRIF4LAVCNFSM6AAAAABCL3I65OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJYG4ZDKOJVGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Any solution? |
Same! |
Can You Give Me a demo? My project is still wrong |
I can't share it because the reason is in the smart-order-router library, and I couldn't make my own implementation:( |
Any update for that? I;m facing the same problem with Next.js |
My summary of the issue so far is as follows: This issue occurs at least on the following browsers:
This issue occurs in all the latest bundlers:
The core issue is in this package: https://github.com/foliojs/brotli.js which is a dependency of The workaround we found so far (dirty one) is to monkey patch the window object and tell it that the Browser.T function exists: window.Browser = {
T: () => {}
} |
Following |
same |
The same issue but with @uniswap/smart-order-router |
Same issue and bunches of error when installing the widget, this definitely not working with nextjs 14 and the given workaround |
same issue with nextjs@14 |
same issue with nextjs@14 x2 |
¿What should i do? Shit |
What works for us is:
Sample component code: "use client";
import React from "react";
import { SwapWidget } from "@uniswap/widgets";
if (typeof window !== "undefined") {
// @ts-ignore
window.Browser = {
T: () => {
}
};
}
const SwapComponent = () => <SwapWidget />;
export default SwapComponent; And that actually made it work some time ago but you will now hit: For now you can try my fork here: But I do not guarantee anything, especially its maintenance. |
Same issue on the version -
|
same |
what should we do! |
any solution for nextjs14 guys? |
nope, that library is a big piece of you know what, recommend to do it on your own, will be still faster then fixing all the bugs in there |
Bug Description
The problem occurs on the widget screen. The endless error "Error fetching trade"
Versions:
Vite: 4.5.1
React: 18.2.0
TypeScript: 5.3.3
@uniswap/widgets: 2.59.0
...
Expected Behavior
A clear and concise description of what you expected to happen.
The text was updated successfully, but these errors were encountered: