Environment
- ZWaveJS-UI Version: 11.5.2.3234f82
- zwave-js Version: 15.15.3
- Plugin: @kvaster/zwavejs-prom
- Deployment: Kubernetes
Problem
The plugin fails to load with the following error:
ERROR APP: Error while loading @kvaster/zwavejs-prom plugin require is not defined
This prevents metrics from being scraped when accessing the /metrics endpoint.
Possible Cause
Recent versions of ZWaveJS-UI have migrated to ES modules, but this plugin still uses CommonJS require() statements, which are not supported in the ES module context.
Environment
Problem
The plugin fails to load with the following error:
This prevents metrics from being scraped when accessing the
/metricsendpoint.Possible Cause
Recent versions of ZWaveJS-UI have migrated to ES modules, but this plugin still uses CommonJS require() statements, which are not supported in the ES module context.