microsoft / microsoft/BotFramework-WebChat
Samples not working
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 1.8k
- Forks
- 1.6k
- Avg merge
- 22h 58m
- Merged PRs (30d)
- 2
Description
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?
- Navigate to https://microsoft.github.io/BotFramework-WebChat/04.api/e.piping-to-redux/
- The sample WebChat does not render
- 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
`-- sample-customization-piping-to-redux@0.1.0 -> .\04.api\e.piping-to-redux
+-- botframework-webchat@4.18.0
| +-- botframework-webchat-api@4.18.0
| | +-- react-chain-of-responsibility@0.2.0-main.3cb47ab
| | | `-- react@18.3.1 deduped
| | +-- react-redux@7.2.9
| | | `-- react@18.3.1 deduped
| | +-- react@18.3.1 deduped
| | `-- use-ref-from@0.1.0
| | `-- react@18.3.1 deduped
| +-- botframework-webchat-component@4.18.0
| | +-- react-dictate-button@2.0.1
| | | `-- react@18.3.1 deduped
| | +-- react-film@3.1.1-main.df870ea
| | | `-- react@18.3.1 deduped
| | +-- react-redux@7.2.9
| | | `-- react@18.3.1 deduped
| | +-- react-say@2.1.0
| | | `-- react@18.3.1 deduped
| | +-- react-scroll-to-bottom@4.2.0
| | | `-- react@18.3.1 deduped
| | +-- react@18.3.1 deduped
| | `-- use-propagate@0.1.0
| | +-- react@18.3.1 deduped
| | `-- use-ref-from@0.0.3
| | `-- react@18.3.1 deduped
| +-- react-dom@18.3.1
| | `-- react@18.3.1 deduped
| `-- react@18.3.1
+-- react-dom@16.8.6
| `-- react@16.8.6 deduped
+-- react-redux@7.2.9
| `-- react@16.8.6 deduped
`-- react@16.8.6
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running npm ls react --all in the samples project and reproduce the failure at the listed 04.api and 06.recomposing-ui sample URLs. Inspect the sample dependency manifests and compare their React and react-dom versions; done means all listed samples render without the React console error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react
- Domain
- developer-experience, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100