Iโm trying to use the Moralis crypto login from an Angular application.
import Moralis from 'moralis/dist/moralis.js';
Moralis.initialize('[appId]');
Moralis.serverURL = '[url]';
export class MoralisService {
constructor() {}
public login(): void {
Moralis.Web3.authenticate()
.then((user: any) => {
console.log(user);
});
}
}
Calling the function throws the following error: TypeError: MWeb3 is not a constructor
same when trying to call Moralis.Web3.enable()
Version 0.0.17