rc-apps@1.12.1 — "Invalid Version: null" error after creating new app

Open
#167 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
node.js, typescript
Domain
cli

Research direction

Reproduce the failure by running rc-apps create followed by rc-apps package in the generated project. Inspect app.json, package.json, tsconfig.json, icon.png, and HelloWorldApp.ts, then trace how the package command reads the app version. Done means a newly created app packages successfully without Invalid Version: null.

Written by the indexing model from the issue text.

Description

I used this article
https://developer.rocket.chat/docs/create-an-app

🐛 Bug Description

After installing @rocket.chat/apps-cli@1.12.1 and running:
rc-apps create
any attempt to package the app via:
rc-apps package
results in the following error:
Error: Invalid Version: null


🔍 What I tried
  • Checked app.json: it does contain "version": "0.0.1"
  • Ensured package.json, tsconfig.json, icon.png, and HelloWorldApp.ts are present in the project root

hello-world_rocket.zip


💻 CLI Version

@rocket.chat/apps-cli/1.12.1 darwin-arm64 node-v18.18.2

Dominant language
TypeScript
Stars
49
Forks
39
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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.