-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fixing docs in response to react-map-gl named export change #9427
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@felixpalmer Anything I'm missing to get this merged in? It's been hanging for a bit |
@Pessimistress Anything you need from me to get this merged in? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
* Update using-with-react.md react-map-gl import * Update using-with-mapbox.md with new react-map-gl import * Update mapbox-layers-react.jsx with new react-map-gl import * Update basemap.md with new react-map-gl import * Update mapbox-overlay.md with new react-map-gl import * Update docs/api-reference/carto/basemap.md --------- Co-authored-by: Chris Gervang <chrisgervang@users.noreply.github.com>
Background
I was working with deck.gl for the first time and wasn't able to get the "getting started" example working. Turns out the latest version of react-map-gl (
8.x
) doesn't export anything from"."
you have to use'react-map-gl/{'mapbox' | 'maplibre' | mapbox-legacy'}
etc.Reproduction instructions
react-map-gl 8.0.1
try to implement the deck.gl react example using usingimport Map from 'react-map-gl'
Internal server error: Failed to resolve entry for package "react-map-gl". The package may have incorrect main/module/exports specified in its package.json: Missing "." specifier in "react-map-gl" package
Additional Context
If you look in
node_modules
the package.json ofreact-map-gl
contains the following:Change List