Hey everyone,
I was following Integration Builder for Angular with polygon blockchain and framework chain ethers, I placed all my code inside a service since I don't all of this code inside the ngOnInit on the app component, when run my initAuth() which is inside the service with all the code the builder places inside the ngOnInit on the app component i get the following error:
Error TypeError: Cannot read properties of undefined (reading: reading).
I also tried placing the code inside the ngOnInit on the app component to troubleshoot and try to identify the error, but It didn't help.
Anyone has any idea as to why this is happening?
Originally posted by:
daniel-gouveia54 Check the discussion at:
https://github.com/orgs/Web3Auth/discussions/1137
Hey everyone,
I was following Integration Builder for Angular with polygon blockchain and framework chain ethers, I placed all my code inside a service since I don't all of this code inside the ngOnInit on the app component, when run my initAuth() which is inside the service with all the code the builder places inside the ngOnInit on the app component i get the following error:
Error TypeError: Cannot read properties of undefined (reading: reading).
I also tried placing the code inside the ngOnInit on the app component to troubleshoot and try to identify the error, but It didn't help.
Anyone has any idea as to why this is happening?
Just an update on my side, I found a solution to this problem, when I followed the Integration Builder the polyfills.ts file didn't work for me, so I checked the troubleshooting page and followed the polyfills.ts file code that is there for angular, and it worked for me until I ran the web3auth and this error popped up, so I decided to re-check everything and polyfills was the only file that was different from the Integration Builder, so I changed what I had from the troubleshooting page to the Integration Builder, and now it works without any errors.
This can now be closed.
Originally posted by:
daniel-gouveia54