Skip to content

Typescript reference error #205

@calebpollman

Description

@calebpollman

Received the following reference error when using maplibre-gl-js-amplify in an app with the TS skipLibCheck compiler option set to true:

../../node_modules/maplibre-gl-js-amplify/lib/esm/AmplifyGeofenceControl/AmplifyMapDraw.d.ts:1:23 - error TS2688: Cannot find type definition file for 'mapbox__mapbox-gl-draw'.

1 /// <reference types="mapbox__mapbox-gl-draw" />
                        ~~~~~~~~~~~~~~~~~~~~~~


Found 1 error in ../../node_modules/maplibre-gl-js-amplify/lib/esm/AmplifyGeofenceControl/AmplifyMapDraw.d.ts:1

Workaround is to directly install @types/mapbox__mapbox-gl-draw

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions