react-map-gl-typescript icon indicating copy to clipboard operation
react-map-gl-typescript copied to clipboard

Error to run the map script

Open LiliGuimaraes opened this issue 5 years ago • 1 comments

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?

LiliGuimaraes avatar Oct 29 '19 14:10 LiliGuimaraes

Hey @LiliGuimaraes this project is no longer necessary -- typescript support has been added upstream!

See https://create-react-app.dev/docs/adding-typescript/.

Cheers :)

zackhsi avatar Oct 30 '19 03:10 zackhsi