This used to work a couple of months ago ..
I have a file index.mjs contains
import TenantOperator from './modules/operator/tenantoperator.mjs';
var tenantOperator = new TenantOperator();
./modules/operator/tenantoperator.mjs contains this
import Operator from '@dot-i/k8s-operator';
export default class TenantOperator extends Operator {
constructor() {}
async init() { ... code ... }
}
Node.js V16.18.0 (Same as I had earlier) is now giving this error @dot-i/k8s-operator": "^1.3.5 installed
Uncaught TypeError TypeError: Class extends value #<Object> is not a constructor or null
At first I thought I had a circular reference, but dpdm says I am good
AL that is changed is that I want form a index.js to index.mjs, Im happily importing other commonJS packages
I'm actually stumped at the moment .. Amny suggestions?
This used to work a couple of months ago ..
I have a file index.mjs contains
./modules/operator/tenantoperator.mjscontains thisNode.js V16.18.0 (Same as I had earlier) is now giving this error
@dot-i/k8s-operator": "^1.3.5installedAt first I thought I had a circular reference, but
dpdmsays I am goodAL that is changed is that I want form a
index.jstoindex.mjs, Im happily importing other commonJS packagesI'm actually stumped at the moment .. Amny suggestions?