React-native-track-player: Cannot read property 'then' of undefined

Created on 27 Dec 2018  路  6Comments  路  Source: react-native-kit/react-native-track-player

Since I upgraded to 1.0.1 I'm getting this issue.

The stack trace is not very helpful

Any idea?

screenshot_20181227-100522

Bug Javascript

Most helpful comment

@rgagnon My project is also impacted : the registerEventHandler is broken.
I tried to hotfix it to create an async method and it works. This error could have been caught with unit tests or flow/typescript...

All 6 comments

I tried on my side and it worked.

Thank you

@rgagnon My project is also impacted : the registerEventHandler is broken.
I tried to hotfix it to create an async method and it works. This error could have been caught with unit tests or flow/typescript...

I confirm works after added async

I'll release a new version tomorrow with the fix. We should definitely automate tests at some point.

Released 1.0.2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

simenJohnsen picture simenJohnsen  路  3Comments

fabiocosta88 picture fabiocosta88  路  3Comments

mnlbox picture mnlbox  路  4Comments

tarahiw picture tarahiw  路  3Comments

EhteshamAnwar picture EhteshamAnwar  路  3Comments