Skip to content
This repository has been archived by the owner. It is now read-only.

Conversation

nicklpeterson
Copy link

Hi, thanks for making this, I want to use it in a project I'm building, but ran into an issue:

Adding this mode results in the below error:

Failed to compile.

./node_modules/mapbox-gl-draw-rotate-scale-rect-mode/src/index.js
Attempted import error: '@mapbox/mapbox-gl-draw/src/lib/common_selectors' does not contain a default export (imported as 'CommonSelectors').

The Fix:

I replaced
import * as CommonSelectors from '@mapbox/mapbox-gl draw/src/lib/common_selectors'
with named imports.

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

Successfully merging this pull request may close these issues.

1 participant