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
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
Angular application with mapbox-gl-js
Default Mapbox streets map style
Build application with {"vendorChunk": true, "extractLicenses": false, "buildOptimizer": false, "sourceMap": true, "optimization": false, "aot": true, "namedChunks": true} (👈🏼 most relevant)
Run application and encounter the exception (dozens of it 😢)
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.
The text was updated successfully, but these errors were encountered:
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.
Create an attach configuration with VS Code (it defaults to port 9222)
Make sure Chrome is opened with --remote-debugging-port=9222
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.
The text was updated successfully, but these errors were encountered: