is this function only available at moralis ?
Moralis uses ethers.js. If you want to use web3.js, you will need to include it separately.
(await this.web3Js.eth.getAccounts())[0];
Where did you get this code from? It should be web3.eth.getAccounts() e.g. web3.eth.getAccounts().then(console.log);
