Closed Slyracoon23 closed 1 year ago
A similar issue with vite and web3js is on stack-overflow: https://stackoverflow.com/questions/72035203/typeerror-cannot-read-properties-of-undefined-reading-call-on-build-but-not
I solved it! Look at the stackoverflow answer. https://stackoverflow.com/questions/73308254/typeerror-cannot-read-properties-of-undefined-reading-call-on-build-but-not
Describe the bug
I am running Vue3/Vite.js app with web3auth installed. When I run vite in dev mode, it works as it is supposed too but when I run it in production mode (build) it fails with:
"TypeError: Cannot read properties of undefined (reading 'call')"
'error while initializing adapter'
.The error starts when I run await
web3auth.initModal();
To Reproduce
Steps to reproduce the behavior:
Setup
Dev test (which works)
build test (which breaks)
Expected behavior
Both build and dev should work
Files
vite.config.ts
package.json
Device Info (please complete the following information):