-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Can't resolve 'react-map-gl' #11268
Comments
Hi @younitee I believe what you want is
Based on the error message you supplied, you're requesting By the way, I noticed in trying to reproduce this that there's some peer dependency issues when installing react-mapbox-gl. We don't maintain that library so if you run into further issues, you should open issues on their Github repo. |
oh shweet, I mix-and-matched my libraries... so embarrassed! thanks for catching that @ryanhamley |
ERROR in ./node_modules/react-map-gl/dist/esm/exports-mapbox.js 16:15-34 |
ERROR in ./node_modules/react-map-gl/dist/esm/exports-mapbox.js 16:15-34 please anybody understand this error then please give me ans how can do correct the problems |
mapbox-gl-js version: 5.1.1
Question
I am attempting to build a
create react app
with typescript and mapbox-gl-js and get the following response:"Module not found: Can't resolve 'react-map-gl' in ..."
Notable dependencies:
"@types/react-map-gl": "^6.1.1", "react": "^17.0.2", "react-mapbox-gl": "^5.1.1", "typescript": "^4.1.2",
Tried many things... am I missing something obvious?
Links to related documentation
#10565
The text was updated successfully, but these errors were encountered: