Botpress installed one version, displaying the other at the start of the application

Asked

Viewed 218 times

0

I’m trying to run version 10 (develop/x) of botpress, but every time I give start he displays the 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>

However, when I have him show his version, it correctly displays the version 10.0.2

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

I’m spinning him inside the Docker, installed using the following command that is described in the documentation.

npm install -g botpress@beta

Can someone help me with this?

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
  • 1

    Thanks Matt, I edited the question with the result of the attempts using link.

  • 1

    I forgot Yarn install / Yarn Compile!

  • 1

    Now the link worked, but it is still using the old version. I changed the machine and re-installed everything. When I use the command botpress ìnit he installs in the node_modules botpress version 1.1.13.

  • when vc Faiz botpress init, node_modules has botpress 1.1, it has to do Yarn link botpress again. vc can do ls -lah node_modules/ | grep botpress and has to see a symlink of the botpress Folder ---> botpressX cloned Repo

  • It worked great my friend Matt :D

Browser other questions tagged

You are not signed in. Login or sign up in order to post.