mapbox-gl-draw-rotate-scale-rect-mode icon indicating copy to clipboard operation
mapbox-gl-draw-rotate-scale-rect-mode copied to clipboard

Bugfix: fix a small bug in module imports

Open nicklpeterson opened this issue 4 years ago • 0 comments

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.

nicklpeterson avatar Nov 20 '21 19:11 nicklpeterson