k8s-operator-node icon indicating copy to clipboard operation
k8s-operator-node copied to clipboard

Add ESM support

Open nascosto opened this issue 11 months ago • 0 comments

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 #<Object> 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!

nascosto avatar Mar 18 '25 17:03 nascosto