Comments (1)
After running npm install react-map-gl --save and including the code snippet from the readme, I get this error:
Uncaught Invariant Violation: addComponentAsRefTo(...): ...
@garrettqmartin8 react-map-gl's package.json lists react as a (peer dependency)[https://github.com/uber/react-map-gl/blob/master/package.json#L68] for this very reason (i.e. react-map-gl does not install its own version of react but uses a compatible version installed by the app), so I would first look elsewhere for the problem.
I'll close this out for now until there is more evidence this is react-map-gl related.
from react-map-gl.
Related Issues (20)
- [Bug] incompatible dom objects within the react landscape HOT 4
- When setting maxZoom and dragging map around markers are moving all over the place [Bug] HOT 1
- [Bug] [docs] Link to MapLibre API docs are broken
- [Feat] Add support for latest Mapbox rendering release (V3) HOT 2
- [Bug] Input data given to 'xxx' is not a valid GeoJSON object HOT 3
- [Bug] Map loading issue on resizing width HOT 1
- [Bug] Missing tiles breaks Layer props update HOT 1
- [Bug] Mapbox queryRenderedFeatures() returns empty array HOT 1
- [Bug] Jump To does not center the map at the point you click on HOT 1
- [Bug] Blurred textures on ultrawide monitors HOT 1
- [Bug] Map projection "globe" is not working in react-map-gl HOT 1
- Next14/Remix HOT 1
- [Feat] Fetch tiles using axios HOT 3
- [Bug] React 19: "Warning: Invalid prop `source` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props."
- [Feat] upgrade to fit `[email protected]` HOT 8
- [Bug] mapRef.current is null inside `onLoad` HOT 4
- Issues with useControl when upgrading to nextjs 14.2
- [Bug] Unexpected map distortion with sticky elements
- [Feat] Update react-map.gl Footer
- [Feat] Use the extended MapLibre CustomRenderMethod
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-map-gl.