Cannot read properties of undefined (reading 'type')
TypeError: Cannot read properties of undefined (reading 'type')
at http://localhost:3000/static/js/bundle.js:493685:42
at Array.map (<anonymous>)
at union (http://localhost:3000/static/js/bundle.js:493685:31)
at ./node_modules/@metamask/abi-utils/dist/parsers/function.js (http://localhost:3000/static/js/bundle.js:51462:29)
at options.factory (http://localhost:3000/static/js/bundle.js:498142:31)
at __webpack_require__ (http://localhost:3000/static/js/bundle.js:497526:32)
at fn (http://localhost:3000/static/js/bundle.js:497800:21)
at ./node_modules/@metamask/abi-utils/dist/parsers/index.js (http://localhost:3000/static/js/bundle.js:51589:14)
at options.factory (http://localhost:3000/static/js/bundle.js:498142:31)
at __webpack_require__ (http://localhost:3000/static/js/bundle.js:497526:32)
Thanks for the quick reply, but it didn’t help me.
I tried to install @metamask/abi-utils in my project, but I still see the error.
``“@metamask/abi-utils”: “2.0.2”`
Also @metamask/abi-utils has @web3auth/ethereum-provider installed, I checked it:
yarn why @metamask/abi-utils
Found "@metamask/abi-utils@2.0.2"
info Reasons why this module exists
- "@web3auth#ethereum-provider#@metamask#eth-sig-util" depends on it
- Retrieved from "@web3auth#ethereum-provider#@metamask#eth-sig-util#@metamask#abi-utils"