peter-murray / node-hue-api

Node.js Library for interacting with the Philips Hue Bridge and Lights
Apache License 2.0
1.18k stars 144 forks source link

TypeError: Cannot set property 'ca' of undefined #203

Closed SGunner2014 closed 2 years ago

SGunner2014 commented 2 years ago

Getting the above error when trying to use nupnpSearch from discovery.

Screenshot 2021-08-24 at 18 13 38

I'm using typescript, but this error stops me from using the search function at all.

peter-murray commented 2 years ago

What version of Node.js and the library are you using here? Do you have some sample code as to how you are using this to create the error so that I can reproduce and test?

peter-murray commented 2 years ago

I see your PR, thanks

peter-murray commented 2 years ago

I have fixed this in the typescript branch and released version 5.0.0-beta.8. There was a test for this already and it was not failing locally for me under Node.js 16. Can you provide some context as to the environment you are using (Node.js or browser etc...) so I can work out why this was failing in this case the tests not catching it.

Thank you for reporting this.