Comments (18)
After manually adding jotai-immer,the console loops indefinitely warning:use useSetAtom
from jotai
instead.
from widgets.
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.
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.
Same!
from widgets.
Same, and when I fix it it says error - Error: Cannot find module '***/node_modules/@uniswap/conedison/dist/format'
from widgets.
Same
from widgets.
see #404 for a suggestion on a fix/workaround. this should help resolve the conedison issue until we can update that library.
from widgets.
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.
from widgets.
Same
from widgets.
And uniswap widget doesn't show some tokens.. wondering it's related to this deprecated warning
from widgets.
same issue as above - After manually adding jotai-immer,the console loops indefinitely warning:use useSetAtom from jotai instead.
from widgets.
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.
This issue is fixed on 2.47.10, you can remove jotai
and jotai-immer
from your dependencies.
from widgets.
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.
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.
Our swap component is already dynamically imported, unfortunately
from widgets.
Is there anybody can resolve this issue
from widgets.
Have tried the fixes above but doesn't resolve the issue unfortunately. Is there another potential resolution to this issue?
from widgets.
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.
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)
- Using custom token-lists breaks loading default logo's
- UI: (desktop/chrome) its not possible to scroll through token list HOT 2
- Bug occurred when it's built HOT 1
- Sepolia integration HOT 6
- hideConnectionUI does not hide the "Connect Wallet" button HOT 1
- Do you need a VPN to access it?
- The swap button does not fit the view HOT 1
- usepermit should return not_applicable if wallet doesnt support signtypeddata_v4 HOT 2
- Buy option with moonpay
- support ethers6
- Error fetching trade HOT 25
- Property 'jsonRpcEndpoint' does not exist on type 'IntrinsicAttributes & SwapProps & WidgetProps'.
- I'm encountering an error whenever the uniswap widget loads in the browser (error is being logged an infinite number of times) HOT 1
- Widgets integration doesn't work HOT 7
- Package install error
- Widget doesn't work at all with React HOT 4
- GetQuote failed on client: Error: Failed to get gas constants data from the optimism gas oracle HOT 2
- swap doesnt work with permit2=false
- No routes found on V2
- DefaultChainID doesn't work as expected HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from widgets.