Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class hierarchy causes unexpected Typescript error #125

Open
GJKrupa opened this issue Oct 15, 2021 · 5 comments
Open

Class hierarchy causes unexpected Typescript error #125

GJKrupa opened this issue Oct 15, 2021 · 5 comments

Comments

@GJKrupa
Copy link

GJKrupa commented Oct 15, 2021

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

@GJKrupa
Copy link
Author

GJKrupa commented Oct 15, 2021

This appears to be a recent regression since the app compiles successfully with version 1.9.0 of the CLI.

@OrigamiKill
Copy link

+1 on version 1.10.1

@kirillk77
Copy link

I can confirm this bug and the workaround related to 1.9.0.

Thank you, @GJKrupa

@ankar84
Copy link

ankar84 commented Nov 19, 2021

@d-gubert hey, Douglas!
Can you take a look at that issue?

@eonae
Copy link

eonae commented Sep 24, 2024

Hey, guys. This is still a problem..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants