botpress / v12

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

[BUG] HITLNext could not display component error after going online #1397

Open RobertoE91 opened 3 years ago

RobertoE91 commented 3 years ago

Describe the bug React component crashes after going online image

To Reproduce Steps to reproduce the behavior:

  1. Enable hitlnext module
  2. Restart server
  3. Create a new empty bot
  4. Go to Flows and add the hitlnext/handoff action on the "on enter" section of the entry node
  5. Open emulator and talk to bot
  6. Go to hitlnext module
  7. Go online
  8. See error

Expected behavior Full view of the module don't crash

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context

I build the platform from source.

I think the cause of this issue comes from AgentList component in botpress\modules\hitlnext\src\views\full\App.tsx line: 148

Since the error goes away after commenting the line: 148 in the same file image

laurentlp commented 3 years ago

@RobertoE91 I know it's only a temporary solution, but try building HITLNext in production mode: NODE_ENV=production yarn build. For reference: https://github.com/botpress/v12/issues/1312. Another alternative is to click on another module (once you are only) and then go back to the HITLNext module.

This should fix your issue when using HITLNext in the studio and also allow you to use it in the admin.

Please also note that this issue will only happen when running a development build of Botpress.