Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes included with this PR
When updating the grp-frontend mapbox-gl and react-mapboxgl-js I'm getting this error
Uncaught ReferenceError: _createClass is not defined
The errors seem to be arising since the JavaScript bundle is incompatible with some Babel transforms because of the way it shares code between the main thread and Web Worker. more info on this can be found here. I tried the solutions suggested on mapbox docs but didn't get it to work on Create react app. I've also tried solutions shared here to get V2 working.
Generally, It looks like the fixes will require customizing our bundlers. Since I didn't get a fix for V2, chose to Rollback the mapbox-gl version to the v1 which has no transpiling issues.
NB* We are still using V1 in reveal web