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

Package loads react typing for yet unreleased react version

Open andrejsm opened this issue 9 years ago • 5 comments

I'm Submitting a ...

[x] Bug report
[ ] Feature request
[ ] Support request

Steps to Reproduce

Fairly simple, just save @types/react ^15.0 to your packages along with react-datetime ^2.10 and you will get problems like expected type 'SVGProps<SVGFETileElement>', but here has type 'SVGProps<SVGFETileElement>' which is caused by mismatch of @typings/react versions.

Since react v16 is not released yet, we are using v15 and accordingly proper typings version, but due to react-dateime deps definition, it loads typings v16 which is released already.

Not asking this to be fixed, as I believe react v16 will be released soon. To fix the issue, just add stricter rules to load typings lower than v16 (at this line https://github.com/YouCanBookMe/react-datetime/blob/master/package.json#L47)

andrejsm avatar Sep 18 '17 16:09 andrejsm

This should be fixed by https://github.com/YouCanBookMe/react-datetime/pull/409

cwmacdon avatar Sep 19 '17 17:09 cwmacdon

Unfortunately it's not fixed. I'm having this issue during development. For now I've forked and updated version lock to restrict anything outside v15 and it works.

andrejsm avatar Sep 19 '17 18:09 andrejsm

Yeah sorry I will be more clear - #409 has been merged but there hasn't been a new release yet that includes it.

cwmacdon avatar Sep 19 '17 22:09 cwmacdon

@andrejsm @cwmacdon: The #409 change has now been released in version 2.10.2. Please let me know if this resolved your issues @andrejsm.

simeg avatar Sep 23 '17 14:09 simeg

Closing due to inactivity.

simeg avatar Nov 01 '17 21:11 simeg