widgets icon indicating copy to clipboard operation
widgets copied to clipboard

Widgets integration doesn't work

Open btc8436954 opened this issue 1 year ago • 7 comments

Bug Description I tried to install widgets on my fresh new nextjs application but it didn't work. Screenshot is attached below

Steps to Reproduce

  1. Install a fresh new nextjs application
  2. Install @uniswap/widgets and react-redux as described in docs
  3. Add <SwapWidget /> component
  4. Got the error

Expected Behavior A clear and concise description of what you expected to happen.

Additional Context

image

btc8436954 avatar May 14 '24 15:05 btc8436954

add "browser": { "fs": false } in package.json this issue will be fixed but later on you might end up of getting same #631 issue

arunkumar201 avatar May 14 '24 15:05 arunkumar201

Thanks @arunkumar201

After fixing "fs" error, I am having another issue:

Error: Cannot find module '/Users/development/uniswap_dex/nextjs/with-tailwindcss-app/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@ethersproject+bignumb_6jidksm52dmfxa3dckdqei34ru/node_modules/@uniswap/conedison/dist/provider/signing'
image

btc8436954 avatar May 14 '24 15:05 btc8436954

follow - https://github.com/arunkumar201/uniswap-widget-nextjs

arunkumar201 avatar May 15 '24 01:05 arunkumar201

Thanks @arunkumar201 but you still get error right?

btc8436954 avatar May 15 '24 01:05 btc8436954

No

arunkumar201 avatar May 15 '24 01:05 arunkumar201

I've utilized a fork of the Uniswap widget, although it may not receive updates in the future.

arunkumar201 avatar May 15 '24 01:05 arunkumar201

I've utilized a fork of the Uniswap widget, although it may not receive updates in the future.

It worked. Thank you @arunkumar201

btc8436954 avatar May 15 '24 10:05 btc8436954

closes #632

btc8436954 avatar Nov 11 '24 12:11 btc8436954