iklein99 / homebridge-smartthings

This is a plugin to Homebridge to connect your Smartthings network into Apple Home Kit.
Apache License 2.0
150 stars 52 forks source link

getting error in Cannot find module 'form-data' #244

Closed zeev-mindali closed 6 months ago

zeev-mindali commented 6 months ago

Describe The Bug:

when plugin is loading getting : Cannot find module 'form-data' To Reproduce:

just installed the plugin, entered smartthing token and restarted the app

Expected behavior:

i want to see all the accessories in smartthing app and web Logs:

[12/31/2023, 6:44:55 AM] ERROR LOADING PLUGIN homebridge-smartthings-ik: [12/31/2023, 6:44:57 AM] Error: Cannot find module 'form-data' Require stack:

Plugin Config:

 {            "name": "Smartthings Plug (IK)",
            "BaseURL": "https://api.smartthings.com/v1/",
            "AccessToken": "***********-****-****-*****-***********",
            "GarageDoorMaxPoll": 40,
            "PollLocksSeconds": 10,
            "PollDoorsSeconds": 10,
            "PollSensorsSeconds": 5,
            "PollSwitchesAndLightsSeconds": 10,
            "PollWindowShadesSeconds": 20,
            "ExposeHumiditySensorForAirConditioners": false,
            "OptionalModeForAirConditioners": "None",
            "platform": "HomeBridgeSmartThings"
        }

Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

Environment:

iklein99 commented 6 months ago

@zeev-mindali , I'm sorry, but I cannot reproduce the error. I just did a fresh install (using docker) and had no issues. I would suggest restarting from scratch.