question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

For some reason I can't add mapbox-gl

See original GitHub issue

I’m trying to add mapbox-gl and it fails because @mapbox/geojson-rewind is missing. Is there an issue with a replicate of npm you are using?

Steps to reproduce:

  1. create an angular project
  2. go to dependencies and add mapbox-gl

Expected: Should work. Actual: fails to get a dependency of this library.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:8

github_iconTop GitHub Comments

1reaction
arturhuncommented, Apr 16, 2019

Same problem, using TypeScript preset. @HarelM Adding @types/mapbox-gl first thing after creating a blitz doesn’t solve the problem for me. Could you share a working blitz perhaps?

0reactions
purplem1lkcommented, May 11, 2021

Thank you for your patience - This is what I see from the latest project link provided. It’s possible that various code changes have fixed this issue. If this issue persists, feel free to tag me or ask to reopen this issue with screenshots of the error. Thank you! 😃

Screen Shot 2021-05-11 at 6 21 46 PM

Read more comments on GitHub >

github_iconTop Results From Across the Web

Web Browser does not support MapBoxGL - onX
Fixing the MapBoxGL error in Microsoft Edge · Click the overflow menu (three dots) in the upper-right corner, then click "Settings." · Click...
Read more >
Webpack cannot handle dynamic import of mapbox-gl #1783
Hello guys! Today I tried to change from using mapbox-gl to use maplibre-gl and to do that I followed this tutorial. To be...
Read more >
Blank or missing map tiles | Help - Mapbox docs
This guide explains how to troubleshoot some common reasons maps fail to load. Your style ID is invalid. If you are using a...
Read more >
Cannot find module 'mapbox-gl/dist/mapbox-gl.js'
I was able to get around this issue by using this import instead: import * as mapboxgl from 'mapbox-gl';. But not all is...
Read more >
Mapbox GL JS - "Source Loaded" event - GIS Stack Exchange
I want to initialize some other modules once userDataLayer is ready to go, but I don't know what event to listen for. I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found