Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import error: 'modes' is not exported from '@mapbox/mapbox-gl-draw' #17

Closed
chuikoffru opened this issue Jul 14, 2020 · 2 comments · Fixed by #19
Closed

import error: 'modes' is not exported from '@mapbox/mapbox-gl-draw' #17

chuikoffru opened this issue Jul 14, 2020 · 2 comments · Fixed by #19

Comments

@chuikoffru
Copy link

chuikoffru commented Jul 14, 2020

Hey! I installed your tool like at docs:
npm i mapbox-gl @mapbox/mapbox-gl-draw @urbica/react-map-gl @urbica/react-map-gl-draw
Screenshot 2020-07-15 at 10 50 52

But When I created a component, i've got an error:
Screenshot 2020-07-15 at 10 56 17

My Component
Screenshot 2020-07-15 at 10 53 43

@braco
Copy link

braco commented Jul 24, 2020

Looks like it's because this library is out of date, go back to an older version of gl-draw:

npm install --save @mapbox/mapbox-gl-draw@1.1.x

@danielpza
Copy link
Contributor

I'm also having this issue, I downgraded to v1.1.x but now the icons don't show:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants