How to import from a subdir in a React library when creating a Custom Component? #3494
daniel-fink
announced in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
react-map-gl requires importing
Map
from'react-map-gl/maplibre'
(note the subdir) when using MapLibre (rather than the default Mapbox, which imports from the root dir)See: http://visgl.github.io/react-map-gl/docs/get-started#example
Mapbox seems to be wrapped fine however I cannot get MapLibre to work (eg, it looks for the wrong npm package if specifying
react-map-gl/maplibre
as the library)How can I properly specify the import statement in the
rx.Component
subclass when defining the React library to wrap?Beta Was this translation helpful? Give feedback.
All reactions