-
Notifications
You must be signed in to change notification settings - Fork 355
Could not parse fraction #20
Comments
Is this issue resolved yet. |
Switching JSBI version to |
Hi @cl510804194 @amanmehra262001 I could not reproduce your issue with neither the latest version of the |
Through debugging, I found that the type of ZERO in the code has changed。 Cause the following judgment to fail ![image](https://user-images.githubusercontent.com/76576519/235186511-98002ecd-430f-4e2f-88e7-f4b643e9ed24.png)。 I tried to change the packaging tool of the project to webpack to solve the problem. I used vite before |
Hi @ai-blib This code works for me without any issues. What packages/versions are you using? Where is this |
Thanks @ai-blib Unfortunately, JSBI is an extension of Array, so So unfortunately we have to find out why Ultimately I think it would make more sense to drop JSBI than try to find a solution for this. |
I also thought it was a version issue at first. router-sdk I will always be the latest version. still have problem。 |
Could you send me your OS, your node version and a code snippet that reproduces this issue? I'll try to reproduce it in Docker. |
But I've been a bit busy lately, wait for me to finish the work at hand. I will send out the project of my experiment, and it took me a lot of time to find the reason for this problem |
Sure, thanks for your help. |
We also find this issue on our project when integrating the Uniswap widget (that uses the sdk-core). |
We opened an issue in the widget repo, but the source error seems to be the same as here, the |
Thank you @torhector2 that helps a lot. I will look into it. |
did you see any reason why it fails @Florian-S-A-W ? |
This worked for me, but I it uncovered a new error
Also I had to pin jsbi to version 3.x, as there were some breaking changes in v4 |
This issue seems to come from Vite rebasing direct node module imports which leads to double instantiating the same dependency and |
I would like to work on this @cl510804194 @amanmehra262001 @moodysalem |
Hi @Florian-S-A-W, I had the same issue as @ai-blib using the latest versions of sdk-core and v3-sdk. Changing JSBI version to 3.2.5 did not solve for me. I independently came up with the same solution as @ai-blib. However, I agree with you this is a hacky solution. I encountered the |
Hi @mrosendin , |
when i copy the code
and throw a error such as
this is my params
i find source code params new Percent(50, 10_000),also throw the same error
The text was updated successfully, but these errors were encountered: