Skip to content

TypeError: Mattermost.Client is not a constructor #389

@0xSkyzoX

Description

@0xSkyzoX

const mattermostClient = new Mattermost.Client(MATTERMOST_SERVER_URL)
^

TypeError: Mattermost.Client is not a constructor
at Object. (/home/skyzox/Documents/projects/dws-agent/src/index.js:22:26)
at Module._compile (node:internal/modules/cjs/loader:1218:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
at Module.load (node:internal/modules/cjs/loader:1081:32)
at Module._load (node:internal/modules/cjs/loader:922:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47

Node.js v18.13.0

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