error - ReferenceError: window is not defined. How to fix this bro
error - ReferenceError: window is not defined
at C:\Users\Thinkpad\Desktop\CodeSpace\thinkshare-browser\node_modules\nipplejs\dist\nipplejs.js:5:36
at C:\Users\Thinkpad\Desktop\CodeSpace\thinkshare-browser\node_modules\nipplejs\dist\nipplejs.js:1:88
at Object.
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.
page: '/'
}
i think bug happend cuz conflict between React 16 vs React 18
@carosaome running into the same error.
Did you have a fix?
@xih Hi, I've use another library. You can checkout https://www.npmjs.com/package/react-joystick-component. Hope it fit in your problem
Sweet, thanks for linking that! Checking it out now