Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on Startup - Won't Load #24

Open
michaeltrillo opened this issue Dec 14, 2022 · 0 comments
Open

Error on Startup - Won't Load #24

michaeltrillo opened this issue Dec 14, 2022 · 0 comments

Comments

@michaeltrillo
Copy link

Receiving the following on startup (Homebridge v1.6.0 (HAP v0.11.0)):

[12/14/2022, 11:01:37 AM] ====================
[12/14/2022, 11:01:37 AM] ERROR LOADING PLUGIN homebridge-eufy:
[12/14/2022, 11:01:37 AM] /homebridge/node_modules/homebridge-eufy/node_modules/node-eufy-api/lib/index.js:1
import fetch from "node-fetch";
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at Object.compileFunction (node:vm:360:18)
    at wrapSafe (node:internal/modules/cjs/loader:1088:15)
    at Module._compile (node:internal/modules/cjs/loader:1123:27)
    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)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/homebridge/node_modules/homebridge-eufy/lib/index.js:2:23)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant