Error for invalid min runtime version in a plugin is misleading
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript
- Ambito
- cli, mobile-dev
Direzione di ricerca
Riproduci il malfunzionamento seguendo i passaggi elencati, iniziando dai valori di versione in src/package.json e dal workflow pack.sh, quindi esegui tns run android da demo-angular. Traccia il punto in cui la CLI elabora la versione minima del runtime del plugin prima che inizi la build. Il lavoro è completato quando valori non validi come "next" producono un errore di validazione diretto che elenca i formati supportati e interrompe la build.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI: 5.0.0-2018-10-08-12406
Describe the bug
When installing a plugin with wrong min runtime version (e.g. "next") the error that is thrown while building the app is misleading.
To Reproduce
- Clone the nativescript-ui-listview plugin repo
- Change the nativescript-android and ios versions in src/package.json file to next
- Pack the plugin with
sh pack.sh - Add the plugin to one of the demos (e.g. cd demo-angular && tns plugin add ../publish/package/*.tgz)
- Execute
tns run android
Preparing project...
Executing before-prepareJSApp hook from /Users/dtodorov/SSD/nativescript-ui-listview/demo-angular/hooks/before-prepareJSApp/nativescript-dev-webpack.js
Successfully prepared plugin nativescript-angular for android.
Successfully prepared plugin nativescript-fresco for android.
Successfully prepared plugin nativescript-theme-core for android.
Unable to apply changes on device: emulator-5554. Error is: Processing node_modules failed. TypeError: Invalid Version: next.
Building project...
Gradle build...
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/dtodorov/SSD/nativescript-ui-listview/demo-angular/platforms/android/app/build.gradle' line: 65
* What went wrong:
A problem occurred evaluating project ':app'.
>
'dependencies.json' file not found. Check whether the NativeScript CLI has prepared the project beforehand,
and that your NativeScript version is 3.3, or a more recent one. To build an android project with the current
version of the {N} CLI install a previous version of the runtime package - 'tns platform add android@3.2'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
Unable to apply changes on device: 01a5bd7074a39516. Error is: Command ./gradlew failed with exit code 1.
Expected behavior
The error should point what exactly is the issue, which are supported formats and shouldn't proceed with build.
- Lingua principale
- JavaScript
- Stelle
- 1.1k
- Fork
- 204
- Merge medio
- 1g 9h
- PR unite (30g)
- 8
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di NativeScript/nativescript-cli
-
in-progress
NativeScript/nativescript-cli#6140 · 2 commenti · 1 assegnatario ·
-
NativeScript/nativescript-cli#6090 · 1 assegnatario ·
-
in progress
NativeScript/nativescript-cli#6015 · 1 reazione · 1 assegnatario ·
-
question
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
NativeScript/nativescript-cli#5992 · 5 commenti ·
-
feature-pending-triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
NativeScript/nativescript-cli#5975 ·
Tutte le issue di NativeScript/nativescript-cli
Issue simili
-
code-quality refactoring
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
langchain-ai/deepagents#6450 ·
-
optimization optimization:agents-md-curator
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
githubnext/gh-aw-cao#13143 ·
-
status: needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100