homekit-react-components
homekit-react-components copied to clipboard
Issue with homekit-react-components // next.js // ReferenceError: self is not defined
Hi,
I am getting this error when trying to use your package:
Server Error ReferenceError: self is not defined
This error happened while generating the page. Any console logs will be displayed in the terminal window.
../node_modules/homekit-react-components/node_modules/react-mobile-picker/lib/react-mobile-picker.js (1:11175)
I also had the same error in your dist/index.js file (line 10, char 4) -> "})(self, function() {". I changed this to "})(this, function() {" and got the error above.
Any tips or is this package dead?
Dod you find any solution on this?
No, I left it alone and didn’t investigate
A okey. Its quite sad since its apparently really hard finding good homekit code for react. I have reused some of his code in my project but all the nice things like dimmer/sliders are not working.
Sorry for the late reply, I stopped maintaining that repo and let it in a pretty bad shape. Feel free to fork and fix the issue.
I hope to have more time soon to resurrect it, but no promise.