Tyler-V / nativescript-mapbox-sdk

Apache License 2.0
0 stars 0 forks source link

ERROR TypeError: Cannot read property 'initWithOwnerAndListenerForMap' of undefined #2

Open Tyler-V opened 3 years ago

Tyler-V commented 3 years ago

https://github.com/Tyler-V/nativescript-mapbox-sdk/blob/3b7bcc9bee674238956b22e0481c7f088c8c0bc3/src/ios/map.ios.ts#L158

Is there something special I need to do here @bradmartin?

It crashes on this line where this worked before the migration to NS7, no breaking changes between podfiles in Mapbox

The referenced class has the @NativeClass() decorator as this MapPanHandlerImpl does extend NSObject

https://github.com/Tyler-V/nativescript-mapbox-sdk/blob/3b7bcc9bee674238956b22e0481c7f088c8c0bc3/src/mapbox-sdk.ios.ts#L285

bradmartin commented 3 years ago

Looks like MapPanHandlerImpl is null/undefined. So be sure that is a valid instance. Can try to help Monday for a minute if you are still stuck on it.