I am currently trying to set up my auth using Web3Auth with typescript. Whenever I try to run it, I get the issue:
(0 , superstruct_1.boolean) is not a function TypeError: (0 , superstruct_1.boolean) is not a function at ./node_modules/@metamask/abi-utils/dist/parsers/bool.js
I assumed this is an issue related to the config-overrides.js? For some reason, it cannot resolve the superstruct in the @metamask modules within node modules.
Let me know if you need any more details. I am also using react-app-rewired. The project is ethereum based and I have followed the initial set up along with the config override due to HTML5 issues.
Hey, I’m not able to reproduce. Can you remove the superstruct, delete node modules, lock file and do npm install again? In case if you need superstruct, please use the latest version.
Hey Ayush. Thanks for trying. I have tired to remove the node files and rebuild with npm i. It has not worked for me. Would it be possible for you to make the repo you tried on, public? I assume it’s just a baseplate project tyou tried on?
This way I will be able to find any possible difference.
After running npm run build or yarn build it’s giving same error. Not fixed yet! Tried multiple times, by even removing node_modules, yarn.lock and build etc folders. But same above error.