You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having trouble getting react-scripts and react-map-gl working together in the production build. It works when running npm run start, but the result of npm run build gives 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
The text was updated successfully, but these errors were encountered:
I am having trouble getting react-scripts and react-map-gl working together in the production build. It works when running
npm run start
, but the result ofnpm run build
gives errors.I have a repo showing the issue here - https://github.com/marc-slingshot/create-react-app-with-react-map-gl
Downgrading to 5.2.12 works. Could this be related to mapbox-gl v2? I noticed similar (but not exact) problems on this older issue thread - #176
Steps to reproduce
git clone https://github.com/marc-slingshot/create-react-app-with-react-map-gl.git
.env.local
npm i
npm run build
npm i -g serve
npx serve -s build
I get the following error:
The text was updated successfully, but these errors were encountered: