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
This is related to the first-class TypeScript support in GL JS. This shouldn't affect the runtime, and you should be safe to suppress these errors. We plan to migrate GL Draw to TypeScript eventually #1265
Hey @ImVk8686, I fixed it with, not the best but at least typescript do not complain
// Weird hack to make mapbox-gl types work with mapbox-gl-draw
declare module 'mapbox-gl' {
export type MapEvent = MapMouseEvent;
export type CircleLayerSpecification = CircleLayer;
export type FillLayerSpecification = FillLayer;
export type LineLayerSpecification = LineLayer;
export type ControlPosition = any;
}
mapbox-gl version: 2.14.1
mapbox-gl-draw version:1.4.1
Steps to Trigger Behavior
1.Tried creating build and getting this error
2.
3.
Expected Behavior
Earlier there was no problem, build was creating successfully
Actual Behavior
The text was updated successfully, but these errors were encountered: