Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Biometrics] Issue running angular demo #542

Open
alexist opened this issue Nov 7, 2023 · 0 comments
Open

[Biometrics] Issue running angular demo #542

alexist opened this issue Nov 7, 2023 · 0 comments

Comments

@alexist
Copy link

alexist commented Nov 7, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant