Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript reference error #205

Open
calebpollman opened this issue Mar 3, 2023 · 0 comments
Open

Typescript reference error #205

calebpollman opened this issue Mar 3, 2023 · 0 comments
Assignees

Comments

@calebpollman
Copy link
Member

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

@calebpollman calebpollman changed the title Using maplibre-gl-js-amplify causes type errors when TS skipLibCheck set to true Typescript reference error Mar 4, 2023
@reesscot reesscot reopened this Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants