Custom UI sample error (21.customization-plain-ui) - hooks from 'botframework-webchat-component' not defined
See original GitHub issueScreenshots
Version
Describe the bug
Running 21.customization-plain-ui throwing undefined errors for all hooks. Not sure if I’m missing a package, but I’m assuming the sample should work out of the box.
To Reproduce
Steps to reproduce the behavior:
- git clone BotFramework-WebChat 2 cd BotFramework-WebChat/samples/21.customization-plain-ui
- npm i
- npm start
App starts on localhost:3000 but throws an error “TypeError: Cannot read property ‘useSendMessage’ of undefined” and stack trace points to “const { useSendMessage } = hooks;”
Expected behavior
App should start up
Additional context
[Bug]
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
latest react-hook-form error handling with material-ui TextField
I prepared a codesandbox example. import { TextField } from "@material-ui/core"; import React ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@samazadi All of the hooks were included in last weeks v4.7.1 release. Updating your
botframework-webchat
dependency to the latest version should unblock you.@samazadi sorry for the delay. I am very hopeful that hooks will be fully implemented before the end of this week. We will circle back to this sample once the final PRs are in.