TypeError: Class extends value undefined is not a constructor or null with Elastic Search Library with TypeScript

Hello Everyone,
While using the Elastic Search Library with TypeScript in Svelte giving unknown TypeError:

import { Client } from "@elastic/elasticsearch";
    import * as fs from "fs";

    const client = new Client({
        node: "https://localhost:9200",
        auth: {
            username: "elastic",
            password: "<Password>",
        },
        tls: {
            ca: fs.readFileSync("./src/lib/http_ca.crt", "utf-8"),
            rejectUnauthorized: false,
        },
    });

This error is occuring while using Elasticsearch library in TypeScript.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.