[SOLVED] Unable to provide apikey in Moralis v1 self-hosted server (Moralis.Start)

Hey guys,

When I’m setting up my V1 Self hosted server, I am unable to set the api key parameter. I get this error: Argument of type '{ apiKey: string; }' is not assignable to parameter of type 'StartOptions'. Object literal may only specify known properties, and 'apiKey' does not exist in type 'StartOptions'

Also, the github repo provided as an example in the moralis v1 docs uses moralis v2.

Please let me know how I can solve this. Thanks!

API key can be added only in v2 sdk. Try updated the sdk to the latest version.