react-moralis icon indicating copy to clipboard operation
react-moralis copied to clipboard

calling useOneInchSwap hook results to TypeError: Cannot read properties of undefined (reading 'chain')

Open mafking opened this issue 2 years ago • 2 comments

New Bug Report

Checklist

Issue Description

Uncaught TypeError: Cannot read properties of undefined (reading 'chain') at useOneInchSwap (useOneInchSwap.ts:57:1) at App (App.js:40:1) at renderWithHooks (react-dom.development.js:16175:1) at mountIndeterminateComponent (react-dom.development.js:20913:1) at beginWork (react-dom.development.js:22416:1) at beginWork$1 (react-dom.development.js:27381:1) at performUnitOfWork (react-dom.development.js:26513:1) at workLoopSync (react-dom.development.js:26422:1) at renderRootSync (react-dom.development.js:26390:1) at recoverFromConcurrentError (react-dom.development.js:25806:1)

Steps + code to reproduce

Actual Outcome

Expected Outcome

Environment

Server

  • Moralis server version: FILL_THIS_OUT

Client

  • react-moralis version: FILL_THIS_OUT
  • Moralis SDK version: FILL_THIS_OUT
  • Operating system: FILL_THIS_OUT
  • Browser: FILL_THIS_OUT

Logs

mafking avatar May 03 '22 17:05 mafking

Any progress with this one? Facing same issue and damn not being able to solve for like 3 days now. Dont know whats going wrong and even on forum no one responding.

0xnirlin avatar May 21 '22 00:05 0xnirlin

Any progress with this one? Facing same issue and damn not being able to solve for like 3 days now. Dont know whats going wrong and even on forum no one responding.

No progress,No answers, I had to suspend the swapping functionalities on my Dapp

mafking avatar May 21 '22 13:05 mafking