Skip to content

Add ESM support #28

@nascosto

Description

@nascosto

Not having solid ESM support makes it hard to leverage this tool.

I'm getting this error when using tsx for example

export class TypesenseOperator extends Operator {
^

TypeError: Class extends value # is not a constructor or null
at (C:\git\Property\Typesense.KubernetesOperator\src\typesense-operator.ts:33:40)
at ModuleJob.run (node:internal/modules/esm/module_job:234:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:473:24)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:122:5)

If I copy in the operator code instead of relying on your library everything works fine.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions