joeyhage / homebridge-alexa-smarthome

Connect Alexa devices to HomeKit
MIT License
64 stars 20 forks source link

Error: Cannot find module 'fp-ts/String' #33

Closed ChaseFreeman17 closed 10 months ago

ChaseFreeman17 commented 10 months ago

Describe Your Problem:

After installing the plugin and rebooting my container I receive an error to load plugin.

I am new to homebridge due to this plugin, I did try installing fp-ts via the terminal and from the startup script, which did not work (shot in the dark). npm install fp-ts

Logs:

[9/12/2023, 8:17:03 PM] [HB Supervisor] Started Homebridge v1.6.1 with PID: 6174
[9/12/2023, 8:17:03 PM] Loaded config.json with 0 accessories and 2 platforms.
[9/12/2023, 8:17:03 PM] Loaded 0 cached accessories from cachedAccessories.
[9/12/2023, 8:17:03 PM] ---
[9/12/2023, 8:17:03 PM] ====================
[9/12/2023, 8:17:03 PM] ERROR LOADING PLUGIN homebridge-alexa-smarthome:
[9/12/2023, 8:17:03 PM] Error: Cannot find module 'fp-ts/String'
Require stack:
- /homebridge/node_modules/homebridge-alexa-smarthome/dist/domain/alexa/save-device-capabilities.js
- /homebridge/node_modules/homebridge-alexa-smarthome/dist/wrapper/alexa-api-wrapper.js
- /homebridge/node_modules/homebridge-alexa-smarthome/dist/platform.js
- /homebridge/node_modules/homebridge-alexa-smarthome/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:1075:15)
    at Function.Module._load (node:internal/modules/cjs/loader:920:27)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (/homebridge/node_modules/homebridge-alexa-smarthome/src/domain/alexa/save-device-capabilities.ts:4:1)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Function.Module._load (node:internal/modules/cjs/loader:958:12)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
[9/12/2023, 8:17:03 PM] ====================
[9/12/2023, 8:17:03 PM] Loading 2 platforms...
[9/12/2023, 8:17:03 PM] No plugin was found for the platform "HomebridgeAlexaSmartHome" in your config.json. Please make sure the corresponding plugin is installed correctly.

Plugin Config:

{
    "devices": [],
    "auth": {
        "refreshInterval": 4,
        "proxy": {
            "clientHost": "10.0.1.99",
            "port": 9000
        }
    },
    "amazonDomain": "amazon.com",
    "language": "en-US",
    "performance": {
        "cacheTTL": 30,
        "backgroundRefresh": false
    },
    "debug": true,
    "platform": "HomebridgeAlexaSmartHome"
}

Environment:

joeyhage commented 10 months ago

Hi Chase! Thanks for reaching out - v0.2.2-beta.0 is still in beta, can you go back to version v0.2.1 please? That version still works.

joeyhage commented 10 months ago

Apologies for the issue you experienced. I also just published a new version which fixes that error.

ChaseFreeman17 commented 10 months ago

I didn't realize they weren't all beta versions! 0.2.1 got me past that issue.

Thanks for the quick reply!