Closed jason-liu22 closed 1 year ago
Same error with the same version.
@pyDjangoDev remove node_modules
directory and yarn.lock
or package-lock.json
file and reinstall dependencies. In my case it's solve the problem.
I just tried to do it in that way. but I still get the same error. Anyway, thanks @vladimirmyshkovski
@pyDjangoDev Were you able to resolve this issue... I am also facing the same
@pyDjangoDev @shaffi-ahuja I encountered the same issue with an older version however only when running a different NODE version.
v16.16.0
the problem occurredv16.10.0
no problemUPDATE
even NODE versions v16.15.0
and v16.15.1
work for me.
@pyDjangoDev @shaffi-ahuja I encountered the same issue with an older version however only when running a different NODE version.
- using latest LTS:
v16.16.0
the problem occurred- using older version:
v16.10.0
no problemUPDATE
even NODE versions
v16.15.0
andv16.15.1
work for me.
This didn't work for me despite using all three versions.
Try adding <></>
(React.Fragment) wrapping the {}
as a workaround like this:
<Carousel >
<>
{avatars.map((_) => /*...*/ )}
</>
</Carousel />
See more: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18051#issuecomment-567690424
Try adding
<></>
(React.Fragment) wrapping the{}
as a workaround like this:<Carousel > <> {avatars.map((_) => /*...*/ )} </> </Carousel />
@pyDjangoDev Were you able to resolve this issue... I am also facing the same
I didn't resolve it at that moment. so I used the react-slick, an alternative.
It worked for me after I upgraded @types/react to 18.0.1
write this code on the Component
{/ @ts-expect-error Server Component /}
<CarouselPosts />
In my case I was able to solve this problem by updating the dependencies of the packages, executing the command:
yarn upgrade
I had same issue, and I solved it with node v 16.13.0
This solved my issue.
Could someone help me, please?
react-multi-carousel@^2.8.0
Thanks in advance.