Undefined is not an object (rating "Sn [e]")

I get this error on Android:

enter image description here

I found this line of code 'Sn[e]'in 'index.android.bundle', which I inserted below (ctrl / command + F):

for (var An in Sn) xn[An] = Sn[An];
 for (var Dn in wn) Pt(!Sn[Dn], "Event cannot be both direct and bubbling: %s", Dn), xn[Dn] = wn[Dn];
 var kn = {
   eventTypes: En({}, Sn, wn),
   extractEvents: function(e, t, n, o) {
    var r = Sn[e],
     i = wn[e],
     a = Pn.getPooled(r || i, t, n, o);
    if (r) fn.accumulateTwoPhaseDispatches(a);
    else {
     if (!i) return null;
     fn.accumulateDirectDispatches(a)
    }
    return a
   }
  },
  jn = kn,
  On = {
   handleTopLevel: function(e, t, n, o) {
    G(sn.extractEvents(e, t, n, o))
   }
  },
  Mn = On,
  Hn = 1,
  Un = {
   tagsStartAt: Hn,
   tagCount: Hn,
   allocateTag: function() {
    for (; this.reactTagIsNativeTopRootID(Un.tagCount);) Un.tagCount++;
    var e = Un.tagCount;
    return Un.tagCount++, e
   },
   assertRootTag: function(e) {
    It(this.reactTagIsNativeTopRootID(e), "Expect a native root tag, instead got %s", e)
   },
   reactTagIsNativeTopRootID: function(e) {
    return e % 10 == 1
   }
  },
  Fn = Un,
  Wn = null,
  Ln = {
   injectFiberControlledHostComponent: function(e) {
    Wn = e
   }
  },
  Bn = null,
  Yn = null,
  Vn = {
   injection: Ln,
   enqueueStateRestore: function(e) {
    Bn ? Yn ? Yn.push(e) : Yn = [e] : Bn = e
   },

Looks like a React code snippet because it has injectFiberControlledHostComponentone that seems to be React Native Fiber. Any idea how I can fix this?

I launched the application in android studio and no errors, because the application builds and installs perfectly. I saw this in the gradle android studio console, but this is probably not a problem:

Note: /Users/Ben/Development/Projects/vepo/frontend/android/app/src/main/java/com/vepo/MainApplication.java uses or cancels the deprecated API. Note: recompiling with -Xlint: deprecation for details.

+4

Source: https://habr.com/ru/post/1693930/


All Articles