Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Bundling with Child Classes fails in Browser

Nathan ZentnerJul 9 2025

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{

}

Comments
Post Details
Added on Jul 9 2025
1 comment
42 views