slutske22 / react-esri-leaflet

react components for esri-leaflet
https://codesandbox.io/s/github/slutske22/react-esri-leaflet/tree/master/examples/ts
MIT License
37 stars 5 forks source link

Uncaught ReferenceError: y is not defined (Production) #18

Closed chris-m92 closed 1 year ago

chris-m92 commented 1 year ago

When in development environment, the VectorBasemapLayer works as advertised. I am able to select the different basemaps to include with and without labels.

However, once in production environment, I am only getting the base layers with no overlays on top (labels, coloring, etc...). The Dev console throws an uncaught reference error that y is not defined.

chris-m92 commented 1 year ago

Turns out from this issue, the issue is actually from package.json. Specifically, the browserslist.production. By default, CRA includes >0.2%, not dead, not op_mini all. However, changing that to defaults, not op_mini all fixed the issue.