I have an application that we are building in a group using version v18.1.0 with typescript and MVVM arch.
I have an abstract class in a parent file with extended classes in child files. The child files have to reference the parent file when referencing the “extends” and the parent file has to reference the child classes because I'm using a getInstance to return the right flavor of child to use. All works when using the “ojet serve”, but when I use the “ojet build release” to get a bundle, and I run the app, I get an error message in the browser “RangeError: Maximum call stack size exceeded”.
When I build it as a single file all works with the Bundle as well, but I would like to keep them as separate files for development purposes.
Parent.ts
Import {ChildCalcA} from “./ChildCalcA”
export abstract class ParentCalc {
`public static getInstance(data){`
`if (data.getA) return new ChildCalcA(data);`
`}`
}
ChildCalcA.ts
Import {ParentCalc} from “./Parent”
export class ChildCalcA extends ParentCalc{
}