question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom UI sample error (21.customization-plain-ui) - hooks from 'botframework-webchat-component' not defined

See original GitHub issue

Screenshots

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:

  1. git clone BotFramework-WebChat 2 cd BotFramework-WebChat/samples/21.customization-plain-ui
  2. npm i
  3. 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:closed
  • Created 4 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tdurnfordcommented, Dec 16, 2019

@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.

1reaction
corinagumcommented, Dec 2, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found