hoobs-org / HOOBS

Build your Smart Home with HOOBS. Connect over 2,000 Accessories to your favorite Ecosystem.
https://hoobs.org
GNU General Public License v3.0
551 stars 51 forks source link

Hoobs issue unexepted Token if #1801

Closed mistertropi closed 2 years ago

mistertropi commented 2 years ago

Hey Guys,

I hope someone can help me. I get the following error in the log when starting Hoobs:

SyntaxError: Unexpected token 'if' at Object.compileFunction (node:vm:352:18) at wrapSafe (node:internal/modules/cjs/loader:1032:15) at Module._compile (node:internal/modules/cjs/loader:1067:27) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object. (/usr/lib/hoobsd/node_modules/hap-nodejs/src/lib/AccessoryLoader.ts:5:1) at Module._compile (node:internal/modules/cjs/loader:1103:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object. (/usr/lib/hoobsd/node_modules/hap-nodejs/src/index.ts:3:1)

I dont know exactly what I can do....

Thank you

mkellsy commented 2 years ago

The error is from NodeJS, it looks like a corrupt install.

What device are you using?

mistertropi commented 2 years ago

Thanks man! it is on a rasberry pi 3. the version is the current one. the error always comes over night...

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.