botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
68 stars 83 forks source link

Error: Module "dialogflow" not found. Tried these locations: "/botpress/binaries/modules/.cache/module__239ef2880857a0c0af7741260046bb40c789a4aef26723b90ac11e8653aec275, #933

Closed slider973 closed 3 years ago

slider973 commented 4 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior: after do

  1. yarn
  2. yarn build
  3. yarn package
  4. cd ./out/binaries

Expected behavior I don't know why but I created a custom module and it's impossible to use a dependency external if I go to check into the directory I find the module but botpress don't get it.

Screenshots image

Environment (please complete the following information):

Drestin commented 4 years ago

Hi. I'm from the same team as @slider973. After some research and debugging with Botpress code, we found out that this output was actually due to another error, which occurs while loading the dialogflow module. The cause error is :

Fatal error loading module "MODULES_ROOT/botpress-module": @grpc/grpc-js only works on Node ^8.13.0 || >=10.10.0

So the culprit is @grpc/grpc-js which doesn't like the Node version. From what we understand, the actions are executed inside a VM. Is there any way to modify or even know the node version of the VM? We couldn't find it.

Strangely enough, we don't get this error when we use yarn start.

Thanks for this product and keep the good work! :)

asashour commented 4 years ago

Thanks, this is a duplicate of botpress/v12#902

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.