Skip to content

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

@samazadi

Description

@samazadi

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]

Metadata

Metadata

Assignees

Labels

Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.bugIndicates an unexpected problem or an unintended behavior.customer-replied-toRequired for internal reporting. Do not delete.customer-reportedRequired for internal Azure reporting. Do not delete.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions