Map cannot rendered in consuming package #2430
Shaochen10
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I’m currently developing a
mapWrapper
component usingreact-map-gl
within a component library package. However, when I import this mapWrapper into the client package of the library, the map fails to render. To resolve this, I had to mark bothreact-map-gl
andmaplibre-gl
as externals in the webpack configuration and add them as dependencies in the client package.Could you please advise if this approach raises any concerns or if there are better recommendations for handling this use case?
Beta Was this translation helpful? Give feedback.
All reactions