react-countdown icon indicating copy to clipboard operation
react-countdown copied to clipboard

Types aren't compatible with React v18

Open robinjoseph08 opened this issue 2 years ago • 3 comments

It looks like the types might need to be updated for later versions of React. This is generated from a project using React v18.

$ tsc --noEmit
node_modules/react-countdown/dist/Countdown.d.ts:5:47 - error TS2694: Namespace 'React' has no exported member 'Props'.

5 export interface CountdownProps extends React.Props<Countdown>, CountdownTimeDeltaFormatOptions, Omit<LegacyCountdownProps, 'onComplete'> {
                                                ~~~~~


Found 1 error in node_modules/react-countdown/dist/Countdown.d.ts:5

robinjoseph08 avatar Dec 15 '22 02:12 robinjoseph08

Hmm, ok, I'll take a look at this. Thanks for reporting!

ndresx avatar Dec 18 '22 14:12 ndresx

Still not working with V18 and countdown is not changing

suhaibzia786 avatar May 24 '23 04:05 suhaibzia786

I am seeing this as well when running:

$ tsc && vite build

node_modules/react-countdown/dist/Countdown.d.ts:5:47 - error TS2694: Namespace 'React' has no exported member 'Props'.

5 export interface CountdownProps extends React.Props<Countdown>, CountdownTimeDeltaFormatOptions, Omit<LegacyCountdownProps, 'onComplete'> {
                                                ~~~~~
Found 1 error in node_modules/react-countdown/dist/Countdown.d.ts:5

collinkleest avatar Sep 21 '23 02:09 collinkleest

Same issue here.

iamvinny avatar Jul 13 '24 02:07 iamvinny