tonesto7 / homebridge-hubitat-tonesto7

Hubitat Homebridge Plugin
108 stars 34 forks source link

Plugin does not load in Homebridge on Raspberry Pi #180

Closed pdonovan closed 1 year ago

pdonovan commented 1 year ago

I recently updated my plugins and now it doesn't load on my Raspberry Pi. I think I was on plugin versions around 2.5 when it last worked.

About Your Setup

I'm running the Homebridge docker image on my Pi

Expected Behavior

The plugin should load correctly in Homebridge

Current Behavior

Homebridge throws an error trying to initialise the plugin

[3/26/2023, 3:49:04 AM] ERROR LOADING PLUGIN homebridge-hubitat-tonesto7:
[3/26/2023, 3:49:04 AM] /homebridge/node_modules/homebridge-hubitat-tonesto7/node_modules/axios/index.js:1
import axios from './lib/axios.js';
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at Module._compile (internal/modules/cjs/loader.js:892:18)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
    at Module.load (internal/modules/cjs/loader.js:812:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Module.require (internal/modules/cjs/loader.js:849:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/homebridge/node_modules/homebridge-hubitat-tonesto7/src/HE_Client.js:2:13)
    at Module._compile (internal/modules/cjs/loader.js:956:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
    at Module.load (internal/modules/cjs/loader.js:812:32)
[3/26/2023, 3:49:04 AM] ====================
github-actions[bot] commented 1 year ago

This issue has been marked stale automatically after no activity for the last 60 days.