`rc-apps pack` throws error with nodejs 24

Open
#173 3 comments 0 reactions 0 assignees View on GitHub

@okayxsh is already working on this.

Since Mar 29, 2026.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
64/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
nodejs, typescript
Domain
cli

Research direction

Reproduce the failure with rc-apps pack on Node.js 24, then inspect the simple-node-logger call shown in AbstractAppender.js:67 and the CLI dependency configuration. Compare behavior with Node.js 22 and verify that packing completes without the util.isDate error on Node.js 24.

Written by the indexing model from the issue text.

Description

Hi there
I've just stumbled over an error, when packing my application with rc-apps pack on my archlinux machine with nodejs 24.

[user@host test]# rc-apps p
packaging your app... done
/usr/lib/node_modules/@rocket.chat/apps-cli/node_modules/simple-node-logger/lib/AbstractAppender.js:67
                if (util.isDate( item )) {
                         ^

TypeError: util.isDate is not a function
    at /usr/lib/node_modules/@rocket.chat/apps-cli/node_modules/simple-node-logger/lib/AbstractAppender.js:67:26
    at Array.map (<anonymous>)
    at AbstractAppender.formatMessage (/usr/lib/node_modules/@rocket.chat/apps-cli/node_modules/simple-node-logger/lib/AbstractAppender.js:66:30)
    at AbstractAppender.formatEntry (/usr/lib/node_modules/@rocket.chat/apps-cli/node_modules/simple-node-logger/lib/AbstractAppender.js:45:27)
    at ConsoleAppender.formatter (/usr/lib/node_modules/@rocket.chat/apps-cli/node_modules/simple-node-logger/lib/ConsoleAppender.js:34:33)
    at ConsoleAppender.write (/usr/lib/node_modules/@rocket.chat/apps-cli/node_modules/simple-node-logger/lib/ConsoleAppender.js:45:30)
    at /usr/lib/node_modules/@rocket.chat/apps-cli/node_modules/simple-node-logger/lib/Logger.js:42:26
    at Array.forEach (<anonymous>)
    at /usr/lib/node_modules/@rocket.chat/apps-cli/node_modules/simple-node-logger/lib/Logger.js:41:23
    at process.processTicksAndRejections (node:internal/process/task_queues:85:11)

Node.js v24.8.0

I've installed it as described in the README via npm install -g @rocket.chat/apps-cli.

I've checked it using the package nodejs-lts-jod which installs nodejs 22 and when running rc-apps pack again, it works as expected.

Could there be taken a look at?

Thanks.

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.