react-carousel-3d icon indicating copy to clipboard operation
react-carousel-3d copied to clipboard

Not working in next js

Open billtovitt opened this issue 3 years ago • 5 comments

When I use 3d-react-carousal in typescript + next js project, I faced this issue. In the normal react project, this is working well.

ReferenceError: self is not defined

What is the solution? Thank you

billtovitt avatar May 23 '22 01:05 billtovitt

Were you able to fix this error?

michaelessiet avatar Jun 15 '22 12:06 michaelessiet

When I use 3d-react-carousal in typescript + next js project, I faced this issue. In the normal react project, this is working well.

ReferenceError: self is not defined

What is the solution? Thank you

3d-react-carousal doesnot support ssr.

please use like ths .

const YourComponent= dynamic(
    () => import("../componments/Carousel"),
    {
      ssr: false,
    }
  );

xiaomingyu-git avatar Jul 08 '22 08:07 xiaomingyu-git

Thank you, I will try, @xiaomingyu-git

billtovitt avatar Jul 20 '22 11:07 billtovitt

have you able to fix this issue @vecnazmaga

jishnu1rks avatar Jun 28 '23 08:06 jishnu1rks

have you able to fix this issue @vecnazmaga I tried and it works.,

xiaomingyu-git avatar Jun 28 '23 08:06 xiaomingyu-git