-
Notifications
You must be signed in to change notification settings - Fork 183
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
Could not find dependency: 'jotai-immer' when using SwapWidget #374
Comments
Same! |
Same, and when I fix it it says error - Error: Cannot find module '***/node_modules/@uniswap/conedison/dist/format' |
Same |
see #404 for a suggestion on a fix/workaround. this should help resolve the conedison issue until we can update that library. |
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. |
Same |
And uniswap widget doesn't show some tokens.. wondering it's related to this deprecated warning |
same issue as above - After manually adding jotai-immer,the console loops indefinitely warning:use useSetAtom from jotai instead. |
For anyone having issues with a bunch of infinite loops about deprecated warnings, add this to your package.json of your project: 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). |
This issue is fixed on 2.47.10, you can remove |
Hm, I can't confirm whether
I have attempted creating an alias per the suggestion in #404, however that simply yields a slightly different error:
|
This is a different issue, caused by some export shenanigans uniswap has. Use the fixes from here - #404 - disabling SSR worked for me. |
Our swap component is already dynamically imported, unfortunately |
I was experiencing the same issue and I asked on their discord - someone pointed out there is a |
Is there anybody can resolve this issue |
Have tried the fixes above but doesn't resolve the issue unfortunately. Is there another potential resolution to this issue? |
Absolute lifesaver, for those who may have missed it, add the |
Bug Description
After installing
@uniswap/widgets
and importingSwapWidget
, aDependencyNotFound
error forjotai-immer
throws.Steps to Reproduce
Codesandbox here
@uniswap/widgets
per the readmeSwapWidget
Expected Behavior
After following the installation steps in the readme,
SwapWidget
is usable without error.Additional Context
jotai-immer
andqs
as dependencies to my project appears to resolve the issueThe text was updated successfully, but these errors were encountered: