I am getting an error when trying to import mapboxgl into my TypeScript file.
I've done it like in the README for mapbox-gl-js:
import mapboxgl from 'mapbox-gl/dist/mapbox-gl.js';
Then when I run the typescript compiler:
tsc
I receive this error:
error TS2307: Cannot find module 'mapbox-gl/dist/mapbox-gl.js'.
But for some reason, everything still gets compiled and works fine. So I am confused what this actual means?
I have created an issue for this on Github: https://github.com/mapbox/mapbox-gl-js/issues/3767