hey good morning , ```const client = Typesense.Cli...
# community-help
n
hey good morning ,
Copy code
const client = Typesense.Client({
    nodes: [
        {
            host: '<http://9xwn4g0kyaqsvmufp-1.a1.typesense.net|9xwn4g0kyaqsvmufp-1.a1.typesense.net>',
            port: '443',
            protocol: 'https',
        }
    ],
    apiKey: 'qtnBzpqaAo9xcndWaUR9GoHG8zhKAysU',
    connectionTimeoutSeconds: 5,
})
I am trying to connect to typesense but i dont know what is wrong client is coming undefined.
j
If this is in the JS / TS client, it should be
const client = new Typesense.Client({...})
You’re missing the
new
keyword
n
thanks that worked for me/
👍 1