Description
Server Setup Information
- Version of Rocket.Chat Server: 6.13.0
- Operating System: linux
- Deployment Method:
- NodeJS Version: v14.21.2
- MongoDB Version: 5.0.15
When I do import of elements:
const {
IAppAccessors,
IConfigurationExtend,
IHttp,
ILogger,
IModify,
IPersistence,
IRead,
} = require(‘@rocket.chat/apps-engine/definition/accessors’);
When I import elements, the system does not give any errors.
But, you just have to try to add
const {
IUIKitResponse
UIKitLivechatBlockInteractionContext,
UIKitBlockInteractionContext,
} = require(“@rocket.chat/apps-engine/definition/uikit”);
How do I immediately receive:
/home/user/server_test.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
at Module._load (node:internal/modules/cjs/loader:975:27)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at Object. (/home/user/server_test.js:23:5)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12) {
code: ‘MODULE_NOT_FOUND’,
requireStack: [ ‘/home/user/server_test.js’ ]
I need this module to render buttons and their behavior in my js bot, since I did all the main work there. And all I want is a few buttons that the bot will send for further work (by clicking on the button there will be either a response or a request to the server (depending on the capabilities of the program). But without buttons I cannot continue working.