BotFramework-WebChat icon indicating copy to clipboard operation
BotFramework-WebChat copied to clipboard

Samples not working

Open vladimirlapacek opened this issue 10 months ago • 0 comments

Is it an issue related to Adaptive Cards?

No

Is this an accessibility issue?

No

What version of Web Chat are you using?

Latest production

Which distribution are you using Web Chat from?

NPM

Which hosting environment does this issue primarily affect?

Web apps

Which browsers and platforms do the issue happened?

No response

Which area does this issue affect?

Development experience

Which theme pack does this issue affect?

Fluent UI

What is the public URL for the website?

https://microsoft.github.io/BotFramework-WebChat/04.api/e.piping-to-redux/

Please describe the bug

Some WebChat samples are currently broken. Please see the following incomplete list:

  • https://microsoft.github.io/BotFramework-WebChat/04.api/e.piping-to-redux/
  • https://microsoft.github.io/BotFramework-WebChat/04.api/f.selectable-activity/
  • https://microsoft.github.io/BotFramework-WebChat/06.recomposing-ui/a.minimizable-web-chat/
  • https://microsoft.github.io/BotFramework-WebChat/06.recomposing-ui/b.speech-ui/ ...

Do you see any errors in console log?

react-dom.production.min.js:188 Invariant Violation: Minified React error #321; visit https://reactjs.org/docs/error-decoder.html?invariant=321 for the full message or use the non-minified dev environment for full errors and additional helpful warnings. 
    at mOt (https://microsoft.github.io/BotFramework-WebChat/06.recomposing-ui/a.minimizable-web-chat/static/app/js/main.js:8:60335)
    at jb (https://microsoft.github.io/BotFramework-WebChat/06.recomposing-ui/a.minimizable-web-chat/static/app/js/main.js:8:60605)
    at up (https://microsoft.github.io/BotFramework-WebChat/06.recomposing-ui/a.minimizable-web-chat/static/app/js/main.js:8:63895)
    at useState (https://microsoft.github.io/BotFramework-WebChat/06.recomposing-ui/a.minimizable-web-chat/static/app/js/main.js:8:65268)
    at Jtn (https://microsoft.github.io/BotFramework-WebChat/06.recomposing-ui/a.minimizable-web-chat/static/app/js/main.js:270:14147)
    at JV (https://microsoft.github.io/BotFramework-WebChat/06.recomposing-ui/a.minimizable-web-chat/static/app/js/main.js:6:17089)
    at sV (https://microsoft.github.io/BotFramework-WebChat/06.recomposing-ui/a.minimizable-web-chat/static/app/js/main.js:8:3175)
    at wve (https://microsoft.github.io/BotFramework-WebChat/06.recomposing-ui/a.minimizable-web-chat/static/app/js/main.js:8:2379)
    at zde (https://microsoft.github.io/BotFramework-WebChat/06.recomposing-ui/a.minimizable-web-chat/static/app/js/main.js:8:1910)
    at Jve (https://microsoft.github.io/BotFramework-WebChat/06.recomposing-ui/a.minimizable-web-chat/static/app/js/main.js:8:47929)
aV @ react-dom.production.min.js:188
react-dom.production.min.js:282 Uncaught Invariant Violation: Minified React error #321; visit https://reactjs.org/docs/error-decoder.html?invariant=321 for the full message or use the non-minified dev environment for full errors and additional helpful warnings. 
    at mOt (https://microsoft.github.io/BotFramework-WebChat/06.recomposing-ui/a.minimizable-web-chat/static/app/js/main.js:8:60335)
    at jb (https://microsoft.github.io/BotFramework-WebChat/06.recomposing-ui/a.minimizable-web-chat/static/app/js/main.js:8:60605)
    at up (https://microsoft.github.io/BotFramework-WebChat/06.recomposing-ui/a.minimizable-web-chat/static/app/js/main.js:8:63895)
    at useState (https://microsoft.github.io/BotFramework-WebChat/06.recomposing-ui/a.minimizable-web-chat/static/app/js/main.js:8:65268)
    at Jtn (https://microsoft.github.io/BotFramework-WebChat/06.recomposing-ui/a.minimizable-web-chat/static/app/js/main.js:270:14147)
    at JV (https://microsoft.github.io/BotFramework-WebChat/06.recomposing-ui/a.minimizable-web-chat/static/app/js/main.js:6:17089)
    at sV (https://microsoft.github.io/BotFramework-WebChat/06.recomposing-ui/a.minimizable-web-chat/static/app/js/main.js:8:3175)
    at wve (https://microsoft.github.io/BotFramework-WebChat/06.recomposing-ui/a.minimizable-web-chat/static/app/js/main.js:8:2379)
    at zde (https://microsoft.github.io/BotFramework-WebChat/06.recomposing-ui/a.minimizable-web-chat/static/app/js/main.js:8:1910)
    at Jve (https://microsoft.github.io/BotFramework-WebChat/06.recomposing-ui/a.minimizable-web-chat/static/app/js/main.js:8:47929)

How to reproduce the issue?

  1. Navigate to https://microsoft.github.io/BotFramework-WebChat/04.api/e.piping-to-redux/
  2. The sample WebChat does not render
  3. Check the browser console for the associated error

What do you expect?

The linked sample should work without errors.

What actually happened?

The sample does not render and reports an error in the browser console.

Do you have any screenshots or recordings to repro the issue?

No response

Adaptive Card JSON


Additional context

The problem is likely caused by incompatible react versions.

 npm ls react --all
botframework-webchat-samples-root@ C:\Users\vlapacek\dev\BotFramework-WebChat\samples
`-- [email protected] -> .\04.api\e.piping-to-redux
  +-- [email protected]
  | +-- [email protected]
  | | +-- [email protected]
  | | | `-- [email protected] deduped
  | | +-- [email protected]
  | | | `-- [email protected] deduped
  | | +-- [email protected] deduped
  | | `-- [email protected]
  | |   `-- [email protected] deduped
  | +-- [email protected]
  | | +-- [email protected]
  | | | `-- [email protected] deduped
  | | +-- [email protected]
  | | | `-- [email protected] deduped
  | | +-- [email protected]
  | | | `-- [email protected] deduped
  | | +-- [email protected]
  | | | `-- [email protected] deduped
  | | +-- [email protected]
  | | | `-- [email protected] deduped
  | | +-- [email protected] deduped
  | | `-- [email protected]
  | |   +-- [email protected] deduped
  | |   `-- [email protected]
  | |     `-- [email protected] deduped
  | +-- [email protected]
  | | `-- [email protected] deduped
  | `-- [email protected]
  +-- [email protected]
  | `-- [email protected] deduped
  +-- [email protected]
  | `-- [email protected] deduped
  `-- [email protected]

vladimirlapacek avatar Apr 01 '25 06:04 vladimirlapacek