AntonioMeireles / homebridge-vieramatic

Homebridge plugin for Panasonic™ Viera™ TVs (includes support for 2018 and later models)
Apache License 2.0
43 stars 9 forks source link

Error [ERR_MODULE_NOT_FOUND] on Synology #101

Closed rescph closed 2 years ago

rescph commented 2 years ago

I just updated my Homebridge to the latest version 1.4.1, running on Synology Package 3.0.3 from OZNU. It's been working and running fine for ages, but now this happened. Re-installing the plug-in didn't fix the issue.

Thank you for looking into this :)

-------snip--------

[6/6/2022, 8:00:46 AM] [Homebridge UI] [homebridge-vieramatic] node:internal/errors:465
    ErrorCaptureStackTrace(err);
    ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/volume1/homebridge/node_modules/.pnpm/homebridge-vieramatic@4.0.36/node_modules/homebridge-vieramatic/node_modules/@homebridge/plugin-ui-utils/dist/index.js' imported from /volume1/homebridge/node_modules/.pnpm/homebridge-vieramatic@4.0.36/node_modules/homebridge-vieramatic/dist/homebridge-ui/server.js
    at new NodeError (node:internal/errors:372:5)
    at finalizeResolution (node:internal/modules/esm/resolve:437:11)
    at moduleResolve (node:internal/modules/esm/resolve:1009:10)
    at defaultResolve (node:internal/modules/esm/resolve:1218:11)
    at ESMLoader.resolve (node:internal/modules/esm/loader:580:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:294:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:80:40)
    at link (node:internal/modules/esm/module_job:78:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}
[6/6/2022, 8:00:46 AM] [Homebridge UI] [homebridge-vieramatic] Child process ended
[6/6/2022, 8:00:48 AM] [Homebridge UI] [homebridge-vieramatic] Terminating child process...
AntonioMeireles commented 2 years ago

Thanks for reporting!

At sight, this looks like an esbuild regression. will try to reproduce ASAP and fix accordingly...

thanks again for your patience!

AntonioMeireles commented 2 years ago

@rescph

humm... just fyi - can't reproduce at all in a rpi4. at sight this may end be related to this https://github.com/oznu/docker-homebridge/issues/442 ... but not yet 100% sure. still digging.

AntonioMeireles commented 2 years ago

@rescph

can you give 4.0.37 that i've just pushed a try, and report if it makes any difference on your specific setup ?

Thanks in advance and a great weekend!

rescph commented 2 years ago

@AntonioMeireles 4.0.37 installed. Everything is running fine now, with no issues. Thank you for fixing this :) Have a great weekend too!

AntonioMeireles commented 2 years ago

@rescph

great to hear! thanks for reporting! just bug me again if issues arise!

All the best,

António