nytimes / react-tracking

🎯 Declarative tracking for React apps.

Home Page:https://open.nytimes.com/introducing-react-tracking-declarative-tracking-for-react-apps-2c76706bb79a

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Property 'tracking' is missing in type...

dutzi opened this issue · comments

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.

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?