question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError · undefined is not a function (evaluating 'c.askAsync(e)')

See original GitHub issue

After upgrading to 29.0.0, I’m getting a bunch of those errors reported by Bugsnag 😕

Any idea on how to fix?

TypeError · undefined is not a function (evaluating 'c.askAsync(e)')

TypeError · undefined is not a function (evaluating 'o.getInfoAsync(e,t)') /data/user/0/MY_APP_NAME/files/29.0.0/cached-bundle-experience-%40username%2FMY_APP_NAME-1805053905-29.0.0:339:284getInfoAsync

Android apiLevel 24

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

9reactions
sjchmielacommented, Aug 22, 2018

Hi @mjgallag!

Could you please try appending the following snippet to the proguard-rules.pro file and then enabling the minification and stripping back?

-keepclassmembers class * {
  @expo.core.interfaces.ExpoProp *;
}
-keepclassmembers class * {
  @expo.core.interfaces.ExpoMethod *;
}

-keepclassmembers class * {
  @**.expo.core.interfaces.ExpoProp *;
}
-keepclassmembers class * {
  @**.expo.core.interfaces.ExpoMethod *;
}
// app/build.gradle

// ...

buildTypes {
  // ...

  release {
    minifyEnabled true
    proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    // ...
  }
}
2reactions
mjgallagcommented, Aug 22, 2018

Unfortunately disabling minification/proguard doesn’t work for us as our detached app is too big so it leads to Too many classes in --main-dex-list, main dex capacity exceeded. @sjchmiela Any other workarounds we can try or ETA on fix? Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

undefined is not an object (evaluating '_expo.Permission ...
Show activity on this post. It is getAsync() , not askAsync() ... Create a function that requests the permissions and opens the camera....
Read more >
How to use the expo-permissions.askAsync function in ... - Snyk
To help you get started, we've selected a few expo-permissions examples, based on popular ways it is used in public projects. Secure your...
Read more >
undefined is not an object (evaluating 'object.keys ... - You.com
I am encountering below error when trying to run my application. TypeError: undefined is not an object (evaluating 'Object.keys(routeConfigs)')TypeError: ...
Read more >
How to fix "Uncaught TypeError: x is not a function" in JavaScript
JS Casts 01 - How to fix "Uncaught TypeError : x is not a function " in JavaScript.Visit https://javascriptcasts.com/episodes/01 for a summary ...
Read more >
Uncaught TypeError | Is Not A Function | Solution - YouTube
Have you encountered an error like:- Uncaught TypeError - Some selector is not a function - jQuery is not a function - owlCarousel...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found