homebridge-mi-airpurifier icon indicating copy to clipboard operation
homebridge-mi-airpurifier copied to clipboard

typeError after update miio

Open choibyeoli opened this issue 6 years ago • 3 comments

After 'miio' updated, it's not work with follwoing message.

TypeError: miio.Device is not a constructor I solved this error But I have another error TypeError: that.device.call is not a function Please solve it

choibyeoli avatar Jan 24 '18 12:01 choibyeoli

You can use 'npm install -g [email protected]' temporarily, then I'll think about a solution.

YinHangCode avatar Jan 25 '18 02:01 YinHangCode

@YinHangCode The best way would be to set miio under dependencies in package.json and lock it to the version you need. That way installing your plugin will automatically install the version of miio needed. 0.15.x will probably not be the last release to change APIs before miio reaches 1.0.0.

aholstenson avatar Jan 25 '18 19:01 aholstenson

@aholstenson that's a good idea, thank you very much.

YinHangCode avatar Jan 26 '18 05:01 YinHangCode