NativeScript / plugins

@nativescript plugins to help with your developments.
https://docs.nativescript.org/plugins/index.html
Apache License 2.0
190 stars 108 forks source link

[Biometrics] Issue running angular demo #542

Open alexist opened 11 months ago

alexist commented 11 months ago

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 :

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 :