The answers I currently see on the web are seemingly out-of-date.
I have node_modules/leaflet-draw and node_modules/@types/leaflet-draw installed.
This line works:
import * as L from 'leaflet';
However this line does not:
import * as foo from 'leaflet-draw';
I receive this error:
/node_modules/@types/leaflet-draw/index.d.ts' is not a module.
To add confusion, this line works:
var leafletDraw = require('leaflet-draw');
Can anyone help me make sense of this?