Closed Bernoulli-IT closed 5 months ago
Hi @Bernoulli-IT,
This is most likely caused by transpilation of GL JS. Please consider:
See also https://github.com/mapbox/mapbox-gl-js/issues/10565
As the provided options are not easy (or impossible) to implement in an Angular application build with VS Code I just found a way that also resolves the issue. This is by attaching the VS Code debugger to the application instead of launching the application from within VS Code.
For a detailed explanation StackOverflow
Whenever building an Angular application in development mode Mapbox keeps throwing
"Expected varint not more than 10 bytes. mapbox://mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2,mapbox.mapbox-bathymetry-v2"
This is an annoying issue when developing because tiles don't get shown although they come from Mapbox itself. What is causing this and can it be resolved. Is it possible to disable VTValidate in development mode (when creating the map)?
version: 2.15.0
browser: Chrome, Edge
Steps to Trigger Behavior
It does seem to be related with starting a debugging session from VS Code. When an "independent" browser is opened and the development application address is navigated to, no issues 🤔
Expected Behavior
A clean presentation of the Mapbox style in the browser application.
Actual Behavior
Dozens of exceptions (errors) being thrown and incomplete map representation. When building a production version all is flawless.