In my app I've included a class hierarchy with a base and a derived class in the same directory (./src). If I attempt to instantiate an instance of the derived class I see the following error when packaging the app:
❯ rc-apps package
packaging your app... !
TypeError: Class extends value undefined is not a constructor or null
The code is valid and compiles if I use npx tsc.
See https://github.com/GJKrupa/rocketchat-cli-125 for an example
If I remove the call to the derived class constructor or remove the class hierarchy then the error goes away