widgets icon indicating copy to clipboard operation
widgets copied to clipboard

export 'ChainId' (imported as 'ChainId') was not found in '@uniswap/smart-order-router'

Open Rutvikghaskata opened this issue 2 years ago • 20 comments

I'm using @uniswap/widgets in reactjs and facing this issue - export 'ChainId' (imported as 'ChainId') was not found in '@uniswap/smart-order-router'

Rutvikghaskata avatar Jun 23 '23 04:06 Rutvikghaskata

same here

CT77777 avatar Jun 23 '23 15:06 CT77777

Same issue for me too. For now I have used iframe one. But iframe doesn't allow customizations. Uniswap team should quickly fix this error

abdullahmehboob20s avatar Jun 24 '23 21:06 abdullahmehboob20s

How do we fix this error ??

USER234587ygf avatar Jun 25 '23 23:06 USER234587ygf

How do we fix this error ??

I've used old version of uniswap widget and it's working fine for me and it will working fine for you as well so please use this version of package for now - @uniswap/widgets": "2.18.0, and once they will fix issue from their side then we can use latest version.

Please do not use this @uniswap/widgets: "^2.18.0" so please make sure You will use without ^ version.

Rutvikghaskata avatar Jun 26 '23 04:06 Rutvikghaskata

How do we fix this error ??

I've used old version of uniswap widget and it's working fine for me and it will working fine for you as well so please use this version of package for now - @uniswap/widgets": "2.18.0, and once they will fix issue from their side then we can use latest version.

Please do not use this @uniswap/widgets: "^2.18.0" so please make sure You will use without ^ version.

Thanks ☺️ 🙏

USER234587ygf avatar Jun 26 '23 13:06 USER234587ygf

How do we fix this error ??

I've used old version of uniswap widget and it's working fine for me and it will working fine for you as well so please use this version of package for now - @uniswap/widgets": "2.18.0, and once they will fix issue from their side then we can use latest version.

Please do not use this @uniswap/widgets: "^2.18.0" so please make sure You will use without ^ version.

hey bro, may I know have u ever try this widget on the forked ethereum mainnet at localhost?

CT77777 avatar Jun 27 '23 02:06 CT77777

How do we fix this error ??

I've used old version of uniswap widget and it's working fine for me and it will working fine for you as well so please use this version of package for now - @uniswap/widgets": "2.18.0, and once they will fix issue from their side then we can use latest version. Please do not use this @uniswap/widgets: "^2.18.0" so please make sure You will use without ^ version.

hey bro, may I know have u ever try this widget on the forked ethereum mainnet at localhost?

In my localhost, I'm using widget with gorli testnet network

Rutvikghaskata avatar Jun 27 '23 03:06 Rutvikghaskata

2.18.0

Thanks. It is working, but this version some issues.

abdullahmehboob20s avatar Jun 27 '23 05:06 abdullahmehboob20s

i have same issues :((

datnguyen-tech avatar Jun 28 '23 03:06 datnguyen-tech

Same issue for me too

JasonX-Jones avatar Jun 29 '23 06:06 JasonX-Jones

Is there a chance to merge a fix?

PawelPodkalicki avatar Jul 05 '23 12:07 PawelPodkalicki

Same issue here, with 2.52.0 on Vite

mvargas33 avatar Jul 06 '23 22:07 mvargas33

Same issue, I dont understand how a new version of the package can generate new dependencies errors, and we must downgrade to make it work

lcrpt avatar Jul 13 '23 05:07 lcrpt

I have this error now after downgrading to 2.18.0 version

"Token list failed validation: must NOT have additional properties"

lcrpt avatar Jul 13 '23 05:07 lcrpt

I dont undesrtand why they can patch this bug. It been 4-5 weeks and m-pilarczyk has opened a PR for the fix which they wont merge. Bloody ridiculous. i think i might have to stop using their library and find an alternative. any recommendations on what we can do?

PriyanshSagar avatar Jul 13 '23 15:07 PriyanshSagar

Your on point @PriyanshSagar

zubeirom avatar Jul 13 '23 15:07 zubeirom

@JFrankfurt @zzmp

zubeirom avatar Jul 13 '23 16:07 zubeirom

@zubeirom your right if they are providing a service then dont leave us hanging. The person responsible for writing the code on the smart-order-router is https://github.com/mikeki he worte the code with this bug 2 days before we all started experiencing the issue. hes currently on holiday and ive found his email and social media, tried messaging him but he wont reply maybe you guys can try he works at uniswap https://www.linkedin.com/in/miguelcervera/

PriyanshSagar avatar Jul 13 '23 18:07 PriyanshSagar

Hey guys, you could test the following version assign:

"@uniswap/smart-order-router": "3.13.2",
"@uniswap/sdk-core": "3.2.3"

aseaday avatar Jul 19 '23 10:07 aseaday

hey guys, any update here? would be great to be able to use the widget outside mainnet also

maruhe avatar Sep 04 '23 00:09 maruhe