Skip to content

Playground is not loading because of dependencies problem with React #2583

@compulim

Description

@compulim

Version

4.6.0 (master)

Describe the bug

This bug only affect users who "npm install" Web Chat with devDependencies, e.g. playground or any packages that use npm link or lerna to include Web Chat in their build.

When botframework-webchat is installed with devDependencies, it installed React 0.14.9 due to transient dependencies from webpack-visualizer plugin.

botframework-webchat do not include devDependencies of React 16.8.6. This is because of the "Rules of Hooks" to maintain a single instance of React. We do include React 16.8.6 at the root package, so both playground and botframework-webchat-* will share the same instance of React.

To Reproduce

Steps to reproduce the behavior:

  1. Clone the repository
  2. Build
  3. Run playground
  4. Type help

Expected behavior

A list of commands are shown.

Instead, console log say thumbnailCard is having issues with React.useMemo.

Additional context

[Bug]

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or an unintended behavior.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions