there are multiple things that happen in Moralis.start, not all finish instantly: https://github.com/MoralisWeb3/Moralis-JS-SDK/blob/d02580ffaa6706182af0d4489f6e8faf9ede9b08/src/Parse.js#L34-L46
ok please can you point me to how i can add await to moralis.start function
https://docs.moralis.io/moralis-server/getting-started/quick-start#initialize-moralis
Plugins module loads asynchronously. It is recommended to initialize Moralis with await to make sure plugins are loaded before using them: await Moralis.start({ serverUrl, appId });
link displays page not found. can u check link. could you drop code snippet for adding await to maralise.start function
ok, that link worked few minutes ago for me, now doesn’t work for me either, it looks like the interface got updated
instead of Moralis.start({ serverUrl, appId })
you write await Moralis.start({ serverUrl, appId });
Thanks guys for your assistance, @cryptokid was right regarding using await. i was able to solve the issue using the implementation below
async created(){
await Moralis.Plugins.oneInch.getSupportedTokens({chain: 'bsc'})
.then(res => {
console.log(res);
}).catch(err => {
console.log(err);
});
},