Botpress installed one version, displaying the other at application start

0

I'm trying to run version 10 ( develop/x ) of botpress , but whenever I give start it displays version 1.1.13

root@3900662b3eb1:/bot# bp start
18:49:25 - info: Starting botpress version 1.1.13
18:49:25 - info: Loaded botpress-platform-webchat, version 0.4.7
18:49:25 - info: Loaded 1 modules
18:49:25 - debug: Loading middleware: UMM.instrumentation
18:49:25 - debug: Loading middleware: hear
18:49:25 - debug: Loading middleware: conversations
18:49:25 - debug: Loading middleware: fallback
(node:127) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'register' of undefined
    at Function.module.exports.bp (/bot/index.js:25:16)
    at botpress._callee$ (webpack-internal:///48:353:32)
    at tryCatch (/usr/local/lib/node_modules/botpress/node_modules/regenerator-runtime/runtime.js:65:40)
    at Generator.invoke [as _invoke] (/usr/local/lib/node_modules/botpress/node_modules/regenerator-runtime/runtime.js:303:22)
    at Generator.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/botpress/node_modules/regenerator-runtime/runtime.js:117:21)
    at step (webpack-internal:///48:119:191)
    at eval (webpack-internal:///48:119:361)
    at <anonymous>

But when I call it to show your version, it correctly displays the 10.0.2 version

root@3900662b3eb1:/bot# bp --version
10.0.2

I'm running it inside Docker , I installed using the following command that is described in the documentation.

npm install -g botpress@beta

Can anyone help me with this?

    
asked by anonymous 02.03.2018 / 19:54

1 answer

1

You can try with yarn link / npm link

git clone https://github.com/botpress/botpress.git botpressX
cd botpressX
git checkout remotes/origin/develop/x
yarn install
yarn compile
yarn link 
cd ../otherProjectFolder
yarn link botpress 
../botpressX/bin/botpress start
    
02.03.2018 / 21:22