I have a react application which I created using the create-react-app tool, the application uses typescript , after importing the create-react-app and the typescript library '@types/leaflet' my application fails to build with the following error message:
Failed to compile.
node_modules/@react-leaflet/core/types/index.d.ts TypeScript error in .../node_modules/@react-leaflet/core/types/index.d.ts(3,1):
Declaration or statement expected. TS1128
1 | export { useAttribution } from './attribution';
2 | export { updateCircle } from './circle';
> 3 | export type { CircleMarkerProps } from './circle';
| ^
4 | export { createContainerComponent, createDivOverlayComponent, createLeafComponent, } from './component';
5 | export { CONTEXT_VERSION, LeafletContext, LeafletProvider, useLeafletContext, } from './context';
6 | export type { LeafletContextInterface } from './context';
Any idea how to fix?