Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error - ReferenceError: window is not defined. How to fix this bro #57

Open
carosaome opened this issue Feb 23, 2023 · 4 comments
Open

Comments

@carosaome
Copy link

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. (C:\Users\Thinkpad\Desktop\CodeSpace\thinkshare-browser\node_modules\nipplejs\dist\nipplejs.js:1:324)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
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. (C:\Users\Thinkpad\Desktop\CodeSpace\thinkshare-browser\node_modules\react-nipple\lib\ReactNipple.js:16:17) {
page: '/'
}

@carosaome
Copy link
Author

i think bug happend cuz conflict between React 16 vs React 18

@xih
Copy link

xih commented Aug 3, 2023

@carosaome running into the same error.

Did you have a fix?

@carosaome
Copy link
Author

carosaome commented Aug 3, 2023

@xih Hi, I've use another library. You can checkout https://www.npmjs.com/package/react-joystick-component.
Hope it fit in your problem

@xih
Copy link

xih commented Aug 5, 2023

Sweet, thanks for linking that! Checking it out now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants