./node_modules/react-map-gl/dist/esm/components/use-control.js 12:46
Module parse failed: Unexpected token (12:46)
File was processed with these loaders:
* ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
|
| if (!map.hasControl(ctrl)) {
> map.addControl(ctrl, (opts || onRemove)?.position);
| }
|
I am trying to use Mapbox for Map integration but I am getting above error while running the code, is anybody aware of this issue please help me