Giter Site home page Giter Site logo

Comments (18)

dai-ki-web avatar dai-ki-web commented on September 13, 2024 3

After manually adding jotai-immer,the console loops indefinitely warning:use useSetAtom from jotai instead.
image

from widgets.

keirongulrajani avatar keirongulrajani commented on September 13, 2024 2

Had the same issue, solved by doing:

-- npm i @uniswap/[email protected]
-- npm i react/redux
-- npm i jotai-immer

and it should work.

This makes the project building properly and run.

However, in my application it seems that after this I get thousands of deprecated error occuring in an infinite loop. Then the swap button is always greyed out. I don't know if it is linked but I see no other reason for this button to stay deactivated.

image

I was experiencing the same issue and I asked on their discord - someone pointed out there is a permit2 prop you can add in the widget (funnily enough i can't see it anywhere in the docs) but it does sort this issue of the greyed out review swap button

from widgets.

Tomiblanchard avatar Tomiblanchard commented on September 13, 2024

Same!

from widgets.

rharkor avatar rharkor commented on September 13, 2024

Same, and when I fix it it says error - Error: Cannot find module '***/node_modules/@uniswap/conedison/dist/format'

from widgets.

zyrm avatar zyrm commented on September 13, 2024

Same

from widgets.

just-toby avatar just-toby commented on September 13, 2024

see #404 for a suggestion on a fix/workaround. this should help resolve the conedison issue until we can update that library.

from widgets.

gilles-hemmerle avatar gilles-hemmerle commented on September 13, 2024

Had the same issue, solved by doing:

-- npm i @uniswap/[email protected]
-- npm i react/redux
-- npm i jotai-immer

and it should work.

This makes the project building properly and run.

However, in my application it seems that after this I get thousands of deprecated error occuring in an infinite loop.
Then the swap button is always greyed out. I don't know if it is linked but I see no other reason for this button to stay deactivated.

image

from widgets.

wangliyue14 avatar wangliyue14 commented on September 13, 2024

Same

from widgets.

wangliyue14 avatar wangliyue14 commented on September 13, 2024

And uniswap widget doesn't show some tokens.. wondering it's related to this deprecated warning

from widgets.

nneverlander avatar nneverlander commented on September 13, 2024

same issue as above - After manually adding jotai-immer,the console loops indefinitely warning:use useSetAtom from jotai instead.

from widgets.

victaphu avatar victaphu commented on September 13, 2024

For anyone having issues with a bunch of infinite loops about deprecated warnings, add this to your package.json of your project:
"jotai": "~1.3.7",

What I noticed was that in the demo code (cosmos) it worked fine, but in newer versions (nextjs etc) jotai was auto-upgraded to 1.18.1 (which has all the weird breaking changes). So the above code simply forces npm to use the compatible jotai version (it gets bumped to 1.3.9 but that's still fine).

from widgets.

marcinciarka avatar marcinciarka commented on September 13, 2024

This issue is fixed on 2.47.10, you can remove jotai and jotai-immer from your dependencies.

from widgets.

cnasc avatar cnasc commented on September 13, 2024

Hm, I can't confirm whether 2.47.10 fixes, upon upgrading and removing I get the following error:

Error: Cannot find module 'node_modules/@uniswap/widgets/node_modules/@uniswap/conedison/dist/provider/signing'

I have attempted creating an alias per the suggestion in #404, however that simply yields a slightly different error:

Module not found: Can't resolve '@uniswap/conedison/provider/signing'

from widgets.

marcinciarka avatar marcinciarka commented on September 13, 2024

Hm, I can't confirm whether 2.47.10 fixes, upon upgrading and removing I get the following error:

This is a different issue, caused by some export shenanigans uniswap has. Use the fixes from here - #404 - disabling SSR worked for me.

from widgets.

cnasc avatar cnasc commented on September 13, 2024

Our swap component is already dynamically imported, unfortunately

from widgets.

nmaddp1995 avatar nmaddp1995 commented on September 13, 2024

Is there anybody can resolve this issue

from widgets.

dawb avatar dawb commented on September 13, 2024

Have tried the fixes above but doesn't resolve the issue unfortunately. Is there another potential resolution to this issue?

from widgets.

DeveloperTheExplorer avatar DeveloperTheExplorer commented on September 13, 2024

Had the same issue, solved by doing:

-- npm i @uniswap/[email protected]
-- npm i react/redux
-- npm i jotai-immer

and it should work.

This makes the project building properly and run.
However, in my application it seems that after this I get thousands of deprecated error occuring in an infinite loop. Then the swap button is always greyed out. I don't know if it is linked but I see no other reason for this button to stay deactivated.
image

I was experiencing the same issue and I asked on their discord - someone pointed out there is a permit2 prop you can add in the widget (funnily enough i can't see it anywhere in the docs) but it does sort this issue of the greyed out review swap button

Absolute lifesaver, for those who may have missed it, add the permit2 prop to SwapWidget.

from widgets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.