Global variables not defined in CLI 8.8

オープン
#5,813 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript
領域
cli, mobile-dev

調査の方向性

リンクされている print-star デモから始め、CLI 8.8 で iOS の実行を再現してから、CLI 8.7.2 と比較します。NativeScript iOS プラグインのフロー中にグローバルの MTPrinterStar がいつ利用可能になるかを調査します。CLI 8.8 でダウングレードを必要とせずにデモが Success をログに出力すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

question
Issue Description

After bumping packages, I found that some packages/plugins only work when I uninstall ns cli globally and install "nativescript": "8.7.2" (downgrade from cli 8.8).

Reproduction

https://github.com/asharghi/print-star-demo

  1. Clone and run with 'ns run iOS' with CLI 8.8
  2. Tap on "Test" button and see "Error" in the console log. ReferenceError: MTPrinterStar is not defined
  3. Uninstall CLI 8.8 and install CLI 8.7.2
  4. Run 'ns clean && ns run ios'
  5. Tap on "Test" button again and see "Success" in the console log
Relevant log output (if applicable)

No response

Environment
OS: macOS 14.6.1
CPU: (10) arm64 Apple M1 Max
Shell: /bin/zsh
node: 18.18.1
npm: 9.8.1
nativescript: Not Found

# android
java: 17.0.11
ndk: Not Found
apis: Not Found
build_tools: Not Found
system_images: Not Found

# ios
xcode: 15.3/15E204a
cocoapods: 1.15.2
python: 2.7.18
python3: 3.12.4
ruby: 2.7.8
platforms: 
  - DriverKit 23.4
  - iOS 17.4
  - macOS 14.4
  - tvOS 17.4
  - visionOS 1.1
  - watchOS 10.4
Dependencies
"dependencies": {
  "@nativescript-community/perms": "^2.3.3",
  "@nativescript/core": "~8.8.0",
  "@nativescript/theme": "^3.1.0",
  "nativescript": "8.7.2",
  "nativescript-permissions": "^1.3.12",
  "nativescript-print-star": "file:local_modules/nativescript-print-star-latest.tgz",
  "nativescript-vue": "~2.9.3"
},
"devDependencies": {
  "@nativescript/ios": "8.8.1",
  "@nativescript/types": "~8.8.0",
  "@nativescript/webpack": "~5.0.0",
  "@types/node": "~17.0.21",
  "nativescript-vue-template-compiler": "~2.9.3",
  "typescript": "~5.4.0",
  "vue": "~2.6.12"
}
Please accept these terms
主要言語
JavaScript
スター
1.1k
フォーク
204
平均マージ
1日 9時間
マージ済み PR(30日)
8

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NativeScript/nativescript-cli のほかの issue

NativeScript/nativescript-cli の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。