Hi Team,
Recently i have configured BOTKit for webhook integration as per the documentation. But getting below error while starting the server.
D:\Kore.ai\BotKit>node app.js
internal/modules/cjs/loader.js:796
throw err;
^
Error: Cannot find module ‘url-template’
Require stack:
- D:\Kore.ai\BotKit\LiveChatAPI.js
- D:\Kore.ai\BotKit\LiveChat.js
- D:\Kore.ai\BotKit\lib\app\routes.js
- D:\Kore.ai\BotKit\lib\app\index.js
- D:\Kore.ai\BotKit\app.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17)
at Function.Module._load (internal/modules/cjs/loader.js:686:27)
at Module.require (internal/modules/cjs/loader.js:848:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (D:\Kore.ai\BotKit\LiveChatAPI.js:6:16)
at Module._compile (internal/modules/cjs/loader.js:955:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:991:10)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Module.require (internal/modules/cjs/loader.js:848:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (D:\Kore.ai\BotKit\LiveChat.js:7:27)
at Module._compile (internal/modules/cjs/loader.js:955:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:991:10)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Module.require (internal/modules/cjs/loader.js:848:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (D:\Kore.ai\BotKit\lib\app\routes.js:4:22)
at Module._compile (internal/modules/cjs/loader.js:955:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:991:10)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Module.require (internal/modules/cjs/loader.js:848:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (D:\Kore.ai\BotKit\lib\app\index.js:5:24)
at Module._compile (internal/modules/cjs/loader.js:955:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:991:10) {
code: ‘MODULE_NOT_FOUND’,
requireStack: [
‘D:\Kore.ai\BotKit\LiveChatAPI.js’,
‘D:\Kore.ai\BotKit\LiveChat.js’,
‘D:\Kore.ai\BotKit\lib\app\routes.js’,
‘D:\Kore.ai\BotKit\lib\app\index.js’,
‘D:\Kore.ai\BotKit\app.js’
]
}
D:\Kore.ai\BotKit>
Best Regards,
Sujan