Uniswap / widgets

widgets-uniswap.vercel.app
GNU General Public License v3.0
123 stars 175 forks source link

Widgets integration doesn't work #632

Open bullishgopher opened 2 months ago

bullishgopher commented 2 months ago

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 component
  4. Got the error

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

Additional Context

image
arunkumar201 commented 2 months ago

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

bullishgopher commented 2 months ago

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/@uniswap+widgets@2.59.0_@babel+runtime@7.24.5_@ethersproject+abi@5.7.0_@ethersproject+bignumb_6jidksm52dmfxa3dckdqei34ru/node_modules/@uniswap/conedison/dist/provider/signing'
image
arunkumar201 commented 2 months ago

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

bullishgopher commented 2 months ago

Thanks @arunkumar201 but you still get error right?

arunkumar201 commented 2 months ago

No

arunkumar201 commented 2 months ago

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

bullishgopher commented 2 months ago

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

It worked. Thank you @arunkumar201