Package error even though I built it normally a few years ago

Open
#163 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
typescript
Domain
cli

Research direction

Reproduce the reported apps package command and inspect how packaging locates RcNotificationApp.ts and the listed files under src/. Check whether the existing files are being resolved from the expected project root, then verify that packaging completes without the missing-file errors.

Written by the indexing model from the issue text.

Description

About three years ago, I was still able to deploy this app normally without any issues, and the code hasn't changed since then. However, now when I package it again, it throws this error, even though the files still exist.
Anyone can help?

`D:\Inteliji\hiro-rcapp-new>rc-apps package
packaging your app... !
Error: Invalid App package. Could not find the classFile (RcNotificationApp.ts) file.

D:\Inteliji\hiro-rcapp-new>rc-apps package
[
{
file: undefined,
start: undefined,
length: undefined,
code: 6053,
category: 1,
messageText: {
messageText: "File 'src/OffRequestCommand.ts' not found.",
category: 1,
code: 6053,
next: [Array]
},
relatedInformation: undefined
},
{
file: undefined,
start: undefined,
length: undefined,
code: 6053,
category: 1,
messageText: {
messageText: "File 'src/endpoints/Notification.ts' not found.",
category: 1,
code: 6053,
next: [Array]
},
relatedInformation: undefined
},
{
file: undefined,
start: undefined,
length: undefined,
code: 6053,
category: 1,
messageText: {
messageText: "File 'src/handlers/ExecuteBlockActionHandler.ts' not found.",
category: 1,
code: 6053,
next: [Array]
},
relatedInformation: undefined
},
{
file: undefined,
start: undefined,
length: undefined,
code: 6053,
category: 1,
messageText: {
messageText: "File 'src/handlers/ExecuteViewSubmitHandler.ts' not found.",
category: 1,
code: 6053,
next: [Array]
},
relatedInformation: undefined
},
{
file: undefined,
start: undefined,
length: undefined,
code: 6053,
category: 1,
messageText: {
messageText: "File 'src/lib/findObjectByActionId.ts' not found.",
category: 1,
code: 6053,
next: [Array]
},
relatedInformation: undefined
},
{
file: undefined,
start: undefined,
length: undefined,
code: 6053,
category: 1,
messageText: {
messageText: "File 'src/lib/sendDirect.ts' not found.",
category: 1,
code: 6053,
next: [Array]
},
relatedInformation: undefined
}
]
A VERY UNEXPECTED ERROR HAPPENED THAT SHOULD NOT!
packaging your app... !
`

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RocketChat/Rocket.Chat.Apps-cli

All issues in RocketChat/Rocket.Chat.Apps-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.