effectussoftware / react-custom-roulette

Repository for the react-custom-roulette library
MIT License
322 stars 114 forks source link

ReferenceError: window is not defined #141

Closed rizkizidane917 closed 1 year ago

rizkizidane917 commented 1 year ago

Hello, I got an error when I try to call the library. The error is window is not defined

Here the import import { Wheel } from "react-custom-roulette";

and here the code

<Wheel mustStartSpinning={mustSpin} prizeNumber={prizeNumber} data={data} onStopSpinning={() => { setMustSpin(false); }} />

rizkizidane917 commented 1 year ago

51