Skip to content

Cannot destructure property 'RNMapboxMapsImpl' of 'undefined' as it is undefined. #3610

Answered by uzun0ff
Charliesandewo asked this question in Q&A
Discussion options

You must be logged in to vote

I dug a bit more and found out that eventually in order to use Mapbox, you have to create a new development build through EAS and not use Expo Go.

Can't really make a stable build yet but I'm trying, hope this helps 😅

EDIT:
@Charliesandewo I've managed to fix this.  

First you have to add the config plugin to your app.{json,config.js,config.ts}

{
  "expo": {
    "plugins": [
      [
        "@rnmapbox/maps",
        {
         "RNMapboxMapsDownloadToken": "sk.ey...qg",
          "RNMapboxMapsVersion": "11.8.0"
        }
      ]
    ]
  }
}

then need to either create a development build through EAS or locally with expo run:ios / expo run:android this will create a custom build of your app…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Charliesandewo
Comment options

@uzun0ff
Comment options

Answer selected by Charliesandewo
@Charliesandewo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants