nytimes / react-tracking

🎯 Declarative tracking for React apps.
https://open.nytimes.com/introducing-react-tracking-declarative-tracking-for-react-apps-2c76706bb79a
Other
1.88k stars 123 forks source link

Property 'tracking' is missing in type... #122

Closed dutzi closed 5 years ago

dutzi commented 5 years ago

Using TypeScript with react-tracking we encountered the following error for each component wrapped by track()

Property 'tracking' is missing in type ...

According to this the issue is with react-tracking, I tried playing around with the type definitions but couldn't find a solution. If I find any I'll update.

tizmagik commented 5 years ago

Hi, sorry for the troubles.

Took a quick look at your repro case, wouldn’t the TrackingProptype go on TrackedComponent and not on MyComponent? Or am I misunderstanding the issue?