Checking if Moralis Modules are already started

Hello, I have sometimes the following error :

Unhandled Runtime Error

Moralis SDK Error: [C0009] Modules are started already. This method should be called only one time.

On the following code:

await Moralis.start({ apiKey: moralisKey });

How can I check if this function was allready called before using it ?

2 Likes

Thank you very much. It works.

1 Like