Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
chris-m92 opened this issue Nov 3, 2022 · 1 comment
Closed

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

chris-m92 opened this issue Nov 3, 2022 · 1 comment

Comments

@chris-m92
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant