Rocket.Chat.Apps-cli icon indicating copy to clipboard operation
Rocket.Chat.Apps-cli copied to clipboard

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

Open 2173241826 opened this issue 9 months ago • 2 comments

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... ! `

2173241826 avatar Apr 29 '25 02:04 2173241826

I am having the same issue with the latest version @rocket.chat/apps-cli/1.12.0 win32-x64 node-v20.14.0

ben-ganley avatar May 01 '25 22:05 ben-ganley

At some point in time, the rc-apps cli started giving errors when compiling on Windows, but was able to compile on Unix-based OS.

Dnouv avatar Sep 02 '25 09:09 Dnouv