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.

Uncaught TypeError: Cannot read property 'then' of undefined

See original GitHub issue

D/SystemWebChromeClient(19365): file:///android_asset/www/plugins/cordova-plugin-apprate/www/AppRate.js: Line 223 : Uncaught TypeError: Cannot read property 'then' of undefined

I/chromium(19365): [INFO:CONSOLE(223)] "Uncaught TypeError: Cannot read property 'then' of undefined", source: file:///android_asset/www/plugins/cordova-plugin-apprate/www/AppRate.js (223)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
georgiosdcommented, Mar 27, 2020

@medicopedia I fixed it by manually calling AppRate.init()

0reactions
regevbrcommented, Sep 4, 2020

It happend to me as well. This is caused by a race condition of the deviceready event handlers. I hack/solved it by delaying the app rate interaction by 500 ms from the deviceready ever, giving a chance for the init method to finish

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read property 'then' of undefined
If the error is regarding undefined , then islogged() doesn't actually return a value. The definition of islogged() would likely be the source ......
Read more >
Cannot Read Property of Undefined in JavaScript - Rollbar
What Causes TypeError: Cannot Read Property of Undefined. Undefined means that a variable has been declared but has not been assigned a value....
Read more >
Cannot read property 'then' of undefined - OutSystems
When I run a specific screen action in my reactive web app I get the exception "Cannot read property 'then' of undefined".
Read more >
Cannot read property 'then' of undefined" when mocking ...
Describe the bug I have the following interface in TypeScript: interface Something { getValueAsync: () => Promise } I'm trying to create a ......
Read more >
Cannot read property 'then' of undefined - Promise - Reddit
You are returning from inside the callback in loadData . This will not be passed back to the caller. It will be consumed...
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