While using the v1.5.0-preview.48c201ce+34.0 of the plug-in, it was unable to load due to a missing dependency for hap-nodejs while running on the production server.
To Reproduce:
Deploy the version of the plug-in mentioned.
Expected behavior:
The plug-in should load correctly.
Logs:
[12/21/2022, 10:48:48 AM] ====================
[12/21/2022, 10:48:48 AM] ERROR LOADING PLUGIN homebridge-automower-platform:
[12/21/2022, 10:48:48 AM] Error: Cannot find module 'hap-nodejs'
Require stack:
- /homebridge/node_modules/homebridge-automower-platform/dist/services/homebridge/characteristics/cuttingHeight.js
- /homebridge/node_modules/homebridge-automower-platform/dist/services/homebridge/customCharacteristicDefinitions.js
- /homebridge/node_modules/homebridge-automower-platform/dist/services/homebridge/abstractAccessoryService.js
- /homebridge/node_modules/homebridge-automower-platform/dist/services/homebridge/abstractSwitch.js
- /homebridge/node_modules/homebridge-automower-platform/dist/automowerAccessory.js
- /homebridge/node_modules/homebridge-automower-platform/dist/automowerAccessoryFactory.js
- /homebridge/node_modules/homebridge-automower-platform/dist/automowerPlatform.js
- /homebridge/node_modules/homebridge-automower-platform/dist/index.js
- /homebridge/node_modules/homebridge/lib/plugin.js
- /homebridge/node_modules/homebridge/lib/pluginManager.js
- /homebridge/node_modules/homebridge/lib/server.js
- /homebridge/node_modules/homebridge/lib/cli.js
- /homebridge/node_modules/homebridge/bin/homebridge
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
at Function.Module._load (node:internal/modules/cjs/loader:841:27)
at Module.require (node:internal/modules/cjs/loader:1061:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object.<anonymous> (/homebridge/node_modules/homebridge-automower-platform/dist/services/homebridge/characteristics/cuttingHeight.js:4:22)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Function.Module._load (node:internal/modules/cjs/loader:878:12)
at Module.require (node:internal/modules/cjs/loader:1061:19)
[12/21/2022, 10:48:48 AM] ====================
Describe The Bug:
While using the v1.5.0-preview.48c201ce+34.0 of the plug-in, it was unable to load due to a missing dependency for
hap-nodejs
while running on the production server.To Reproduce:
Deploy the version of the plug-in mentioned.
Expected behavior:
The plug-in should load correctly.
Logs:
Plugin Config:
Screenshots:
Mower:
Environment: