react-map-gl Not Working with Webpack, but Plain Mapbox Does #2347
Unanswered
wyatt-shein
asked this question in
Q&A
Replies: 1 comment
-
I also have the same issue but it was ChunkLoadError: Loading chunk 158 failed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there! After much time spent failing to fix this issue, I'm hoping someone here can help!
I am trying to use react-map-gl in my react webpack app. Using this example on their website I have no issue and the map loads just fine.
However, when i use react-map-gl with the simplest example in the getting-started, it works just fine locally but as soon as i push to another environment (staging, production) i get these errors:
main.js:2 ChunkLoadError: Loading chunk 925 failed.
main.js:2 ChunkLoadError: Loading chunk 925 failed.
(error: https:/my-app-url.com/mapboxTrial/925.main.js)
I am not an expert in webpack but I am assuming that is where my issue lies. I have a pretty simple webpack config ill post below. Thanks so much in advance for the help. The sooner I can get past this the sooner I can deep dive into mapbox! Please let me know if I can clarify anything
Beta Was this translation helpful? Give feedback.
All reactions