尝试导入错误:未从'react-leaflet'导出'MapControl'
问题描述:
我尝试使用react-leaflet-draw,但我继续收到此错误:
I tried using react-leaflet-draw and I keep on getting this error:
./node_modules/react-leaflet-draw/dist/esm/EditControl.js
Attempted import error: 'MapControl' is not exported from 'react-leaflet'.
我只是在这里使用示例: https://www.npmjs.com/包/反应传单图纸
I just used the examples here: https://www.npmjs.com/package/react-leaflet-draw