Skip to content

Plugin fails to load on ZWaveJS-UI 11.5.2 #7

@jheddings

Description

@jheddings

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions