NativeScript / NativeScript/plugins
[Biometrics] Issue running angular demo
オープン
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 206
- フォーク
- 123
- 平均マージ
- 2日 1時間
- マージ済み PR(30日)
- 1
説明
Hi,
When i run angular demo on ios or android, i get an error when i click on "Biometrics" label :
JS: CONSOLE LOG: Angular is running in development mode. Call enableProdMode() to enable production mode.
JS: CONSOLE ERROR: ERROR TypeError: Cannot read properties of undefined (reading 'status')
JS: CONSOLE ERROR: ERROR TypeError: Cannot read properties of undefined (reading 'status')
JS: CONSOLE ERROR: ERROR Error: Uncaught (in promise): TypeError: _nativescript_biometrics__WEBPACK_IMPORTED_MODULE_1__.BiometricAuth is not a constructor
JS: TypeError: _nativescript_biometrics__WEBPACK_IMPORTED_MODULE_1__.BiometricAuth is not a constructor
JS: at new DemoSharedBiometrics (file: src/tools/demo/biometrics/index.ts:15:25)
JS: at BiometricsComponent.ngOnInit (file: src/plugin-demos/biometrics.component.ts:15:20)
JS: at callHook (file: node_modules/@angular/core/fesm2015/core.mjs:2418:0)
JS: at callHooks (file: node_modules/@angular/core/fesm2015/core.mjs:2387:0)
JS: at executeInitAndCheckHooks (file: node_modules/@angular/core/fesm2015/core.mjs:2338:0)
JS: at refreshView (file: node_modules/@angular/core/fesm2015/core.mjs:10319:0)
JS: at detectChangesInternal (file:///data/data/org.nativesc..
Here the steps i follow :
git clone git@github.com:NativeScript/plugins.git
cd plugins
npm run setup
npm start
In npm start :
- @nativescript.build-all
- focus.biometric
- apps.demo-angular.ios
The application is deployed, and display "biometrics". When i click on "biometrics", i get the error "nativescript_biometrics__WEBPACK_IMPORTED_MODULE_1_.BiometricAuth is not a constructor"
My environment :
- os : macos
- yarn : 1.22.19
- node : v18.16.1
- npm : 8.19.4
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
npm start ワークフローから始めて、DemoSharedBiometrics が BiometricAuth を構築している src/tools/demo/biometrics/index.ts を調べ、次に src/plugin-demos/biometrics.component.ts を確認します。Angular デモで失敗を再現し、undefined の status と constructor のエラーを追跡します。完了条件は、デモプラットフォームで Biometrics を選択してもこれらのエラーが発生しなくなることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- mobile, security
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100