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
Hello, when I use mapbox-gl v2.0.1 with create-react-app everything is ok when i run npm run start but when I build the app with npm run build and then try to run the builded site, map is not showing up and there is an error in console
ReferenceError: y is not defined
Looks like there is some issue with webpack used in create-react-app and mapbox-gl package.
mapbox-gl-js version: 2.0.1
browser: Firefox 84.0, Chrome 87.0.4280.88
Steps to Trigger Behavior
Make an app using create-react-app (I made it with typescript template)
Install mapbox-gl v2 package and add map to page
Build the app using npm run build and try to run the build
Hello, when I use mapbox-gl v2.0.1 with create-react-app everything is ok when i run
npm run start
but when I build the app withnpm run build
and then try to run the builded site, map is not showing up and there is an error in consoleLooks like there is some issue with webpack used in create-react-app and mapbox-gl package.
mapbox-gl-js version: 2.0.1
browser: Firefox 84.0, Chrome 87.0.4280.88
Steps to Trigger Behavior
npm run build
and try to run the buildLink to Demonstration
screenshot
github: https://github.com/800147/mapbox-2-test
Expected Behavior
Map is showing up
Actual Behavior
Map is not showing up, error in console
The text was updated successfully, but these errors were encountered: