metsrl/channel-rocketchat

Build

Closed this issue · 0 comments

Hi, when i try build final file, i have:

[21:55:18] Finished 'build-module channel-messenger' after 14 s
[21:55:18] Starting 'build-module channel-rocketchat'...

=======================================
Error building module /home/tomasz/projects/bots/botpress/modules/channel-rocketchat
=======================================
Status: error Command failed with exit code 1.

Output: info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
success Saved lockfile.
$ node ../../build/module-builder/bin/entry build --fail-on-error
[module-builder] [ERROR] in /home/tomasz/projects/bots/botpress/modules/channel-rocketchat/src/backend/client.ts (103,21)
                 TS2345: Argument of type '{ id: any; botId: string; channel: string; direction: "incoming"; payload: { text: any; user_info: { created: boolean; result: sdk.User; }; }; type: string; preview: any; target: any; }' is not assignable to parameter of type 'EventCtorArgs'.
  Object literal may only specify known properties, and 'id' does not exist in type 'EventCtorArgs'.
                 
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

[21:55:25] 'build-module channel-rocketchat' errored after 6.98 s
[21:55:25] Error: Command failed: cross-env npm_config_target_platform=darwin yarn  && yarn build --fail-on-error
error Command failed with exit code 1.

    at ChildProcess.exithandler (child_process.js:308:12)
    at ChildProcess.emit (events.js:314:20)
    at ChildProcess.EventEmitter.emit (domain.js:506:15)
    at maybeClose (internal/child_process.js:1022:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
    at Process.callbackTrampoline (internal/async_hooks.js:126:14)
[21:55:25] 'build' errored after 4.57 min
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

"name": "botpress",
  "version": "12.22.1",