homekit-react-components icon indicating copy to clipboard operation
homekit-react-components copied to clipboard

Issue with homekit-react-components // next.js // ReferenceError: self is not defined

Open CynicalDuck opened this issue 2 years ago • 4 comments

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?

CynicalDuck avatar Jan 27 '23 06:01 CynicalDuck

Dod you find any solution on this?

ludvigaldrin avatar Jun 25 '23 06:06 ludvigaldrin

No, I left it alone and didn’t investigate

CynicalDuck avatar Jun 25 '23 06:06 CynicalDuck

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.

ludvigaldrin avatar Jun 26 '23 17:06 ludvigaldrin

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.

william57m avatar Nov 18 '23 00:11 william57m