NativeScript / NativeScript/nativescript-cli

Sending runtime version expresion rather than actual version during installation on device.

Open
#5,651 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug-pending-triage
Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

Issue Description

When I have on package.json:

"@nativescript/android": "^8.2.2",

On my Samsung Galaxy phone, I get an error during installation that the version ^8.2.2 is illegal.
NS seems to be sending the npm expression instead of the actual runtime version being installed.

Reproduction

On any project package.json change "@nativescript/android" to use an expression. And do ns run android
If your phone is lenient and accepts it, check the metadata on your phone and you will see the version number is the version expression; otherwise the install will be rejected.

Relevant log output (if applicable)

No response

Environment

No response

Please accept these terms

Contributor guide

Open the contributing guide

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.

Research direction

Start with the package.json dependency expression and reproduce the problem by running ns run android on a device. Trace where the Android installation metadata is assembled, then verify that the device receives the resolved runtime version rather than the package.json expression.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, javascript
Domain
cli, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.