NativeScript / NativeScript/plugins

[Biometrics] Issue running angular demo

Đang mở
#542 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
TypeScript
Star
206
Fork
123
Merge trung bình
2 ngày 1 giờ
Pull request đã merge (30 ngày)
1

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu với quy trình npm start và kiểm tra src/tools/demo/biometrics/index.ts, nơi DemoSharedBiometrics tạo BiometricAuth, sau đó kiểm tra src/plugin-demos/biometrics.component.ts. Tái hiện lỗi trên bản demo Angular và theo dõi các lỗi về status undefined và constructor; hoàn thành khi việc chọn Biometrics không còn gây ra các lỗi này trên các nền tảng demo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
angular, typescript
Lĩnh vực
mobile, security
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.