react-map-gl-typescript
react-map-gl-typescript copied to clipboard
Error to run the map script
Hi, I ran the project and the typed text returns the following error for the index.tsx script:
Type '{ onViewportChange: (viewport: { height: number; latitude: number; longitude: number; width: numb...' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<NavigationControl> & Readonly<NavigationControlPro...'. Type '{ onViewportChange: (viewport: { height: number; latitude: number; longitude: number; width: numb...' is not assignable to type 'Readonly<NavigationControlProps>'. Property 'onViewStateChange' is missing in type '{ onViewportChange: (viewport: { height: number; latitude: number; longitude: number; width: numb...'
Could you please give me some help?
Hey @LiliGuimaraes this project is no longer necessary -- typescript support has been added upstream!
See https://create-react-app.dev/docs/adding-typescript/.
Cheers :)