Skip to content
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

I'm encountering an error whenever the uniswap widget loads in the browser (error is being logged an infinite number of times) #631

Open
kr-arunp opened this issue May 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@kr-arunp
Copy link

Bug Description
getting error whenever the widget loaded in the browser

error: (**The following error is being logged an infinite number of times.)
An unhandled error occurred processing a request for the endpoint "getTradeQuote".
In the case of an unhandled error, no tags will be "provided" or "invalidated". TypeError: Cannot read properties of undefined (reading 'DAI_OPTIMISM_SEPOLIA')
at Module.DAI_OPTIMISM_SEPOLIA (VM8327 index.js:38:132)
at eval (VM8332 get-candidate-pools.js:51:49)

image

Versions:
nextjs:14.1.4
React: 18.2.0
"ethers": "^5.7.2",
"@uniswap/widgets": "2.59.0",

code
uniswapWidget.tsx

import { SwapWidget } from '@uniswap/widgets'
import '@uniswap/widgets/fonts.css

....
const jsonRpcUrlMap = {
137: ['https://polygon-mainnet.g.alchemy.com/v2/api_key'],
1: ["https://eth-mainnet.g.alchemy.com/v2/api_key]
}
const TOKEN_LIST = 'https://ipfs.io/ipns/tokens.uniswap.org'
......

....

i have tested the same issue with latest react+ vite as well
image

@kr-arunp kr-arunp added the bug Something isn't working label May 14, 2024
@kr-arunp kr-arunp changed the title I'm encountering an error whenever the uniswap widget loads in the browser." I'm encountering an error whenever the uniswap widget loads in the browser (error is being logged an infinite number of times) May 14, 2024
@bullishgopher
Copy link

@kr-arunp I am getting another issue #632

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants