PaulLeCam / react-leaflet

React components for Leaflet maps
https://react-leaflet.js.org
Other
5.19k stars 887 forks source link

In production mode typescript returns TS1005: ',' expected. error #1061

Closed aohayk closed 6 months ago

aohayk commented 1 year ago

I have using react 17 and typescript 4.9.4 So when I run npm run prod I have TS1005: ',' expected. error in node_modules` node_modules/react-leaflet/lib/WMSTileLayer.d.ts(3,43) image

This issue related import { type... } from '....'

EugenIlchenko commented 1 year ago

same problem

damiangolojuch commented 1 year ago

You have to bump typescript version in your project, at least to 4.5.