Class hierarchy causes unexpected Typescript error
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- build-system, cli
Research direction
Start with the example repository at https://github.com/GJKrupa/rocketchat-cli-125 and reproduce the issue using rc-apps package; compare that result with a successful npx tsc compile. Investigate the packaging path and class-hierarchy handling, and consider the issue done when the derived class packages without the Class extends value undefined error.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- TypeScript
- Stars
- 49
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from RocketChat/Rocket.Chat.Apps-cli
-
Feature Request: Add Boilerplate Templates to rc-apps createPossibly taken @ShubhamS2005 claimed this 243 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 55/100
RocketChat/Rocket.Chat.Apps-cli#181 · 1 comment ·
-
Windows: rc-apps deploy fails with File 'X.ts' not found while tsc compiles successfullyPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
RocketChat/Rocket.Chat.Apps-cli#177 · 3 comments ·
-
Bug: Infinite loop in rc-apps watchMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
`rc-apps pack` throws error with nodejs 24May be free again @okayxsh claimed this 231 days ago, and no pull request is open. Open
Difficulty 3/5 1-2 days Newbie friendliness 64/100
RocketChat/Rocket.Chat.Apps-cli#173 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
All issues in RocketChat/Rocket.Chat.Apps-cli
Similar issues
-
bug
Difficulty 2/5 Half a day Newbie friendliness 68/100
amosblomqvist/learnharness#758 ·
Maintainers usually reply within 2 days
-
Change WorkspacesOpen
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
bitfocus/companion-module-renewedvision-propresenter-api#134 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
rcpch/digital-growth-charts-react-component-library#304 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
dsh-market/dsh-market#1210 · 1 comment ·
Maintainers usually reply within 1 day
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
trustjonathan/STUDY-HUB#13 ·