score:2
The issue is basically one of the dependencies of react-map-gl which is called gl-matrix has upgraded to version 3.4.0 from 3.3.0. Probably because it is a minor upgrade some of its dependant libraries
├─┬ mapbox-gl@1.13.1
│ └── gl-matrix@3.3.0
├─┬ react-map-gl@5.3.17
│ └─┬ viewport-mercator-project@7.0.4
│ └─┬ @math.gl/web-mercator@3.5.5
│ └── gl-matrix@3.3.0 deduped
└─┬ viewport-mercator-project@6.2.3
└── gl-matrix@3.3.0
automatically tried to fetch latest minor version. I'm trying force-resolutions with npm both on docker as well.
You can check which version your packages are using with
- npm ls gl-matrix
then try
- npm install --unsafe-perm
to force resolutions if necessary.
score:1
Installation
Using react-map-gl requires react >= 16.3.
npm install --save react-map-gl mapbox-gl
score:2
I had the same issue and in the end had to add gl-matrix
as an explicit dependency:
npm install gl-matrix
Source: stackoverflow.com
Related Query
- Firebase-Admin, importing it to react application throws Module not found error
- Module not found error using Yarn 2 to link React components
- how to solve the error that fs module is not found when used react and next.js
- How to fix this error : " Module not found :can't resolve popper.js "
- React Router BrowserRouter leads to "404 Not Found - nginx " error when going to subpage directly without through a home-page click
- Webpack + React + TypeScript: Module not found ... in ... node_modules/react/
- React unable to import component -- module not found
- How to fix Next.js Vercel deployment module not found error
- Module not found Error when deployed on Heroku
- React Starter Kit error - page not found
- React Native issue: Module does not exist in the Haste module map
- Error in Entry Module not found - in Webpack Config file
- getting error : Could not find a declaration file for module 'react-bootstrap-modal'. in react js
- How to resolve module not found error in webpack/reactjs app?
- How to Fix "export 'React' (imported as 'React') was not found in 'react'" Error in React js
- How to create React App including Web3 using create-react-app? I am getting Module not found Error. BREAKING CHANGE: webpack < 5 used
- `react-map-gl` ERROR Module not found error [MAPBOX]
- React - jquery module not found
- React js - Unable to use react-icons, Module not found '../lib'
- How to load favicon in django server from react build folder? manifest.json not found error
- React module not found - how to import modules in react
- 404 Not Found error in preflight OPTIONS when executing a PUT method in CakePHP API with axios in React App
- react compile error, Module not found
- Razzle - React not found Error on running server.js in build folder
- Module not found in React
- File not found error when trying to 'fetch' json in React App
- React - error result map is not a function?
- react map is not a function error in my app
- React Native - Expo Error - "export 'auth' was not found in 'firebase' :
- Error in map function / Objects are not valid as a React child / React.js
More Query from same tag
- React Change Navbar title based on rendered page
- Antd - validateFields only checks current form step
- How to list a data inside another list using map and filter in React CLI (Comments List and Reply List)
- How is it possible that dynamic components overwrite each other's states?
- deep link in react SPA correctly falls back to index.html; but afterwards does not navigate back to deep link
- React Typescript prop works fine, but returns error
- Update context value after API call
- Set multiple (interdependent) values on state at the same time
- this.Setstate is not working correctly in reactJS
- Multiple sizeColumnsToFit() ag-grid React
- How to pass store state as a prop in react-redux-typescript?
- Find Color of Text Element in React
- React Router auth-flow doesn't redirect on invalid/expired token
- react-saga call function on source component
- File Limitation in express server (Bigger than 50MB)
- Web manifest is not accessible after forcing SSL
- Array in React being mutated
- Rendering loop problem in ReactJS UseEffect Method
- How to make div section closed on outside click?
- Retrieving sub-domain in Next.js page
- Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside (Jwt ) Redux
- React navigation with hooks and header function - state is not updating
- Adding element to antd Dropdown overlay property results in React single child error
- React hook useState not updating state as desired?
- formik connect props extends missing properties
- React hook with fetch api
- I am trying to put a list of countries in a .js file and export it for reuse. Getting errors
- Connected container components further down the tree?
- React+Firebase: Store clicked btns with useState
- How to methodically debug "Uncaught Invariant Violation" errors in react