akiran / react-slick

React carousel component
http://react-slick.neostack.com/
MIT License
11.61k stars 2.09k forks source link

Type Issues with @types/react 18.2.22 #2284

Closed lx-maxhaslehner closed 9 months ago

lx-maxhaslehner commented 9 months ago

When using the latest Version of React Slick combined with @types/react Version 18.2.22, there are type errors when trying to build the project. (When using Version 18.2.21, everything works fine)

Bildschirmfoto 2023-09-21 um 10 42 29

ericus123 commented 9 months ago

A similar issue here

Screenshot 2023-09-21 at 14 54 35
kjxbyz commented 9 months ago

same issue.

2023-09-23 13 35 03
Lucasgeg commented 9 months ago

Hey guys, I get the same issue since I've update to 1.18.22 on an other project, I fixed it with a yarn dedupe and it's all good

kjxbyz commented 9 months ago
  1. rm -f yarn.lock
  2. yarn
  3. yarn build

It works for me.

Lucasgeg commented 9 months ago
  1. rm -f yarn.lock
  2. yarn
  3. yarn build

It works for me.

It's quite the same, with this you delete all your yarn.lock, yarn dedupe will parse your yarn.lock and only delete duplication 👍