metsrl / channel-rocketchat Goto Github PK
View Code? Open in Web Editor NEWBotpress 12.x.x / Rocket.Chat integration
License: GNU General Public License v3.0
Botpress 12.x.x / Rocket.Chat integration
License: GNU General Public License v3.0
yarn install v1.22.5
[1/5] Validating package.json...
error [email protected]: The engine "node" is incompatible with this module. Expected version "^12". Got "10.23.2"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
The command '/bin/sh -c yarn && yarn build && yarn package' returned a non-zero code: 1
Hi Michele,
Yes I'm having the same problem but I guess is due another issue.
Build is ok:
[16:38:22] Starting 'build-module channel-rocketchat'...
[16:38:37] Finished 'build-module channel-rocketchat' after 15 s
Packing is generating a small issue:
[module-builder] Writing to "/bp/out/binaries/modules/channel-rocketchat.tgz"
[module-builder] Zipping 407 files...
[module-builder] Error packaging module: ELOOP: too many symbolic links encountered, stat '/bp/modules/channel-rocketchat/node_production_modules/asteroid/test/dist'
[module-builder] Cleaning up temporary files...
[16:49:54] Finished 'package-module channel-rocketchat' after 8.42 s
[16:49:54] Starting 'package-module channel-slack'...
[module-builder] Installing production modules...
[module-builder] yarn install v1.22.4
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Rebuilding all packages...
Done in 16.92s.
Originally posted by @arthurd2 in #2 (comment)
Hey man, first of all: thanks for the module.
Question: There's a right way to install the module in Botpress?
I've try to:
But all leads me to one of the following errors:
Launcher Error while loading some modules, they will be disabled [VError, Could not find module at path "MODULES_ROOT/channel-rocketchat"],
VError: Could not find module at path "MODULES_ROOT/channel-rocketchat",
STACK TRACE
or
Launcher Error while loading some modules, they will be disabled [Error, Cannot find module '/botpress/modules/.cache/module__xxxxxx'],
Error: Cannot find module '/botpress/modules/.cache/module__xxxxxx'
I'm using Botpress 12.8.5 in Docker.
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",
So, do we really need this library?
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
Here's console logs:
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 C:/Users/camel/Desktop/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.
[11:43:03] 'build-module channel-rocketchat' errored after 30 s
[11:43:03] 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:295:12)
at ChildProcess.emit (events.js:210:5)
at ChildProcess.EventEmitter.emit (domain.js:499:23)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
[11:43:03] 'build' errored after 19 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.
C:\Users\camel\Desktop\botpress>yarn -v
1.22.5
Please help!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.