plugins
plugins copied to clipboard
[Biometrics] Issue running angular demo
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 [email protected]: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