On my local pc (Windows) I have botpress v 12.6.2 running. I have the same version running on a remote Ubuntu instance.
On either machine I go to the botpress directory and run bp pull, which errors (below).
I have found a similar issue already, for a previous version: https://github.com/botpress/v12/issues/800. Using the version suggested in that issue (12.1.3) the command succeeds.
C:\snapshot\build-windows\out\bp\index.js
1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:964:15)
at Function.Module._resolveFilename (pkg/prelude/bootstrap.js:1346:46)
at Function.Module._load (internal/modules/cjs/loader.js:840:27)
at Module.require (internal/modules/cjs/loader.js:1024:19)
at Module.require (pkg/prelude/bootstrap.js:1225:31)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (C:\snapshot\build-windows\out\bp\bpfs.js)
at Module._compile (pkg/prelude/bootstrap.js:1320:22)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1156:10)
at Module.load (internal/modules/cjs/loader.js:984:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
at Module.require (internal/modules/cjs/loader.js:1024:19)
at Module.require (pkg/prelude/bootstrap.js:1225:31)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.handler (C:\snapshot\build-windows\out\bp\index.js)
at Object.runCommand (C:\snapshot\build-windows\node_modules\yargs\build\index.cjs:424:48) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\snapshot\build-windows\out\bp\bpfs.js',
'C:\snapshot\build-windows\out\bp\index.js'
],
pkg: true
}
Cannot find module 'common/utils'
Require stack:
C:\snapshot\build-windows\out\bp\bpfs.js
C:\snapshot\build-windows\out\bp\index.js
1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.
---STACK---
Error: Cannot find module 'common/utils'
Require stack:
C:\snapshot\build-windows\out\bp\bpfs.js
C:\snapshot\build-windows\out\bp\index.js
1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:964:15)
at Function.Module._resolveFilename (pkg/prelude/bootstrap.js:1346:46)
at Function.Module._load (internal/modules/cjs/loader.js:840:27)
at Module.require (internal/modules/cjs/loader.js:1024:19)
at Module.require (pkg/prelude/bootstrap.js:1225:31)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (C:\snapshot\build-windows\out\bp\bpfs.js)
at Module._compile (pkg/prelude/bootstrap.js:1320:22)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1156:10)
at Module.load (internal/modules/cjs/loader.js:984:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
at Module.require (internal/modules/cjs/loader.js:1024:19)
at Module.require (pkg/prelude/bootstrap.js:1225:31)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.handler (C:\snapshot\build-windows\out\bp\index.js)
at Object.runCommand (C:\snapshot\build-windows\node_modules\yargs\build\index.cjs:424:48)
Hi Jon, this was fixed in this PR botpress/botpress#4363 and will be available in the next release. In the meantime, I recommend using the Download archive button.
Make sure these checkboxes are checked before raising an issue, thank you!
12.13.0
Please also fill in these fields:
official binary
windows & ubuntu
On my local pc (Windows) I have botpress v 12.6.2 running. I have the same version running on a remote Ubuntu instance. On either machine I go to the botpress directory and run
bp pull
, which errors (below).I have found a similar issue already, for a previous version: https://github.com/botpress/v12/issues/800. Using the version suggested in that issue (12.1.3) the command succeeds.
Stack Trace: C:\Users\Jon Goodall> bp.exe pull --url XXX --authToken XXXX --targetDir data Error starting botpress Error: Cannot find module 'common/utils' Require stack: