-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
[PROBLEM] Map not showing up in the production build #209
Comments
Looked around for possible solutions. Here is a Github discussion I found: mapbox/mapbox-gl-js#10240. Tried the suggested fix and the problem is gone. Are we okay with downgrading to v1.13.0 of the mapboxgl package? @jeff-knurek @JFQueralt maybe you could look into this and make a decision? |
Created a branch ( |
I think the downgrade is a good temporary solution. For reference, this issue mapbox/mapbox-gl-js#10173 is the current open issue to track when the problem gets fixed upstream. |
Integrated the changes into the |
* Add legend display, and automatic dark/light mode detection * Add top stats display component * Add Totals and Language selector components * Render Header, Total stats and language selector on Map and fix styling * Fix Header styling * Fix invalid imports * Fix css import in Header * Fix styling of Header and Legend Component * Integrate api to fetch Total stats * Fix incorrect CSS import in Header * Fix styling of Legends, Language Selector and Total stats * Fix storybook error * Fix clickHandler of Tabmenu * Add basic color coding in the map * Fix incorrect import * Fix build error * Fix warnings in Map.js * Revert unwanted changes to some files * Fix styling of Language selector * Downgrade to v1.13.0 of the mapboxgl package (#209) * Clean-up some code * Add press play functionality * Refactor some code * Fix failing build * Bug fix in press-play Co-authored-by: Nazeeh Vahora <nazeehvahora.786@gmail.com>
* Add legend display, and automatic dark/light mode detection * Add top stats display component * Add Totals and Language selector components * Render Header, Total stats and language selector on Map and fix styling * Fix Header styling * Fix invalid imports * Fix css import in Header * Fix styling of Header and Legend Component * Integrate api to fetch Total stats * Fix incorrect CSS import in Header * Fix styling of Legends, Language Selector and Total stats * Fix storybook error * Fix clickHandler of Tabmenu * Add basic color coding in the map * Fix incorrect import * Fix build error * Fix warnings in Map.js * Revert unwanted changes to some files * Fix styling of Language selector * Downgrade to v1.13.0 of the mapboxgl package (#209) * Clean-up some code * Add press play functionality * Refactor some code * Fix failing build * Bug fix in press-play * Timeslider integration (#211) * Add timeslider boilerplate * Fix timeslider errors * Fix warnings Co-authored-by: Nazeeh Vahora <nazeehvahora.786@gmail.com> * Merge ocg-dev-2 (#212) * Try fixing storybook error * Add boilerplate for countriesSearch * Add country search functionality * Fix warnings Co-authored-by: Nazeeh Vahora <nazeehvahora.786@gmail.com> * Remove warnings * Fix build errors * Fix build errors Co-authored-by: Dhaiwat10 <dhaiwatpandya@gmail.com>
* Add legend display, and automatic dark/light mode detection * Add top stats display component * Add Totals and Language selector components * Render Header, Total stats and language selector on Map and fix styling * Fix Header styling * Fix invalid imports * Fix css import in Header * Fix styling of Header and Legend Component * Integrate api to fetch Total stats * Fix incorrect CSS import in Header * Fix styling of Legends, Language Selector and Total stats * Fix storybook error * Fix clickHandler of Tabmenu * Add basic color coding in the map * Fix incorrect import * Fix build error * Fix warnings in Map.js * Revert unwanted changes to some files * Fix styling of Language selector * Downgrade to v1.13.0 of the mapboxgl package (#209) * Clean-up some code * Add press play functionality * Refactor some code * Fix failing build * Bug fix in press-play * Try fixing storybook error * Add boilerplate for countriesSearch * Add country search functionality * Fix warnings * Timeslider integration (#211) * Add timeslider boilerplate * Fix timeslider errors * Fix warnings Co-authored-by: Nazeeh Vahora <nazeehvahora.786@gmail.com> * Merge ocg-dev-2 (#212) * Try fixing storybook error * Add boilerplate for countriesSearch * Add country search functionality * Fix warnings Co-authored-by: Nazeeh Vahora <nazeehvahora.786@gmail.com> * Remove warnings * Fix build errors * Fix build errors * Fix infinite rerendering * Fix infinite rerendering * fix: dialogbox styling & timeslider bug * Fix CountryInfo UI, add dark and light mode for it, fix countrySearch, timeSlider * Fix build errors * added internationalization * added internationalization * add dependecy in useEffect * add dependecy in useEffect * Integrate LanguageSelector * cleanup * Fix warnings in CountryInfo.js * pull ocg-dev-1 * pull ocg-dev-1 * Implement CountryInfo but api call is remaining * Add getCountryData and getCountryDetailService api calls * Add .gitignore at the top level * Remove node_modules from top folder * Delete commented code and unused variables * Fix more errors * Fix more build errors * Delete duplicated code in App.js (#348) * Clean up some code smells (#350) * Delete duplicated code in App.js * Simplify App.js date formatting * Clean up CountryInfo.js * Clean up router.js * Rename servicesConfiguration.js to the constant it exports * Rename TiimeSlider.stories.js to fix typo * Extract CountryInfo.js nested ternary operations * Remove commented code and simplify TimeSlider.js (#351) * Delete duplicated code in App.js * Simplify App.js date formatting * Clean up CountryInfo.js * Clean up router.js * Rename servicesConfiguration.js to the constant it exports * Rename TiimeSlider.stories.js to fix typo * Extract CountryInfo.js nested ternary operations * Remove commented code * Remove (more) commented code from TimeSlider.js * Refactor toSliderString to reduce complexity * Remove toSliderStringShort Co-authored-by: Dhaiwat10 <dhaiwatpandya@gmail.com> Co-authored-by: 1337.ishaan <1337.ishaan@gmail.com> Co-authored-by: nakullondhe <65081281+nakullondhe@users.noreply.github.com> Co-authored-by: Stanley Miao <53798580+stanley-miao@users.noreply.github.com>
Describe the bug
The map is not loading properly in the production build. Instead of the world map, you will see a blank white screen.
To Reproduce
Steps to reproduce the behavior:
npm install
andnpm run build
.serve -s build
.Expected behavior
The map should load a simple color-coded world map instead of the white empty space.
Screenshots

Desktop:
Additional context
Check the error message from the mapboxgl library in the screenshot attached above.
The text was updated successfully, but these errors were encountered: