title: React Module Parse Failed – react-map-gl
body: <p>I am currently trying to make a typescript app on expo using the react-map-gl package. I currently am trying to load the basic example code snippet they have. I have downloaded the type files for react-map-gl as well.</p>
  <p>However, when I try to run the app this error shows:</p>
  <pre><code>Module parse failed: Unexpected token (10:46)
  You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
  |         const gc = new mapLib.GeolocateControl(props);
  |         gc.on('geolocate', e =&gt; {
  &gt;             thisRef.current.props.onGeolocate?.(e);
  |         });
  |         gc.on('error', e =&gt; {
  </code></pre>
  <p>I haven't been able to find anything online that resolves this problem. Does anyone know what I'm doing wrong? Happy to provide more information as well. Thanks!</p>