demo: Google Pay and Apple pay crashing

Offen
#11 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
typescript
Bereich
mobile, payments

Rechercherichtung

Reproduce the demo failure with NativeScript CLI 8.1.4, then inspect plugin-demos/google-pay.xml at line 14 and plugin-demos/apple-pay.xml at line 11, where GooglePayBtn and ApplePayBtn are reported missing. Done means both demo sections load without the reported XML-building crashes on Android and iOS.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

I am trying to run the demo app of this repo and when trying to go to the Google Pay / Apple pay section of the app, it is crashing with the following messages:

Android - Google Pay:

System.err: An uncaught Exception occurred on "main" thread.
System.err: Calling js method onClick failed
System.err: Error: Building UI from XML. @plugin-demos/google-pay.xml:14:11
System.err: > Module 'GooglePayBtn' not found for element 'GooglePayBtn'.
System.err: > instanceType is not a constructor

iOS - Apple Pay:

***** Fatal JavaScript exception - application has been terminated. *****
NativeScript encountered a fatal error: Uncaught Error: Building UI from XML. @plugin-demos/apple-pay.xml:11:11

Module 'ApplePayBtn' not found for element 'ApplePayBtn'.
instanceType is not a constructor

I am on NativeScript CLI 8.1.4

Vorherrschende Sprache
TypeScript
Sterne
35
Forks
13
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus NativeScript/payments

Alle Issues in NativeScript/payments

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.