Using create-react-app and the latest react-map-gl does not work.
Steps to reproduce
- clone this repo
- add mapbox API token to .env.local
REACT_APP_MAPBOX_TOKEN=<your mapbox token>
npm i
npm run build
npm i -g serve
npx serve -s build
- open up http://localhost:5000, open up dev tools, notice errors
Uncaught ReferenceError: y is not defined
at a915e7a2-d12d-45dc-b9bc-45bf5baa8c10:1
at a915e7a2-d12d-45dc-b9bc-45bf5baa8c10:1
at a915e7a2-d12d-45dc-b9bc-45bf5baa8c10:1