Skip to content

Out of date React dependency in CDN preventing ReactWebChat component render  #2602

@mSigson

Description

@mSigson

Version

4.6.0

Describe the bug

We're an Ember.js shop using Microsoft Bot Framework to implement a new bot in our web app. However, to render custom components through WebChat we've added React/ReactDOM to our build to be able to use the ReactWebChat component.

We want to make sure our version of React is as up to date as possible and due to the version locks in 4.6.0 our bot won't render due to duelling versions of React (see console error).

Current project versions:

"react": "^16.11.0",
"react-dom": "^16.11.0"

We've now had to change our CDN from
https://cdn.botframework.com/botframework-webchat/latest/webchat.js to https://cdn.botframework.com/botframework-webchat/4.5.3/webchat.js.

Screen Shot 2019-11-13 at 10 59 13 AM

Enquiry

What are the reasons for locking React/ReactDOM in 4.6.0? 

I'd like to be able to upgrade our project version of React to stay up to date.

Is there a plan to upgrade React beyond 16.8.6 and to stay up to date as versions are released?

To Reproduce

Steps to reproduce the behavior:

  1. open existing React Project (react/react-dom versions greater than 16.8.6)
  2. At botframework through cdn https://cdn.botframework.com/botframework-webchat/latest/webchat.js
  3. Attempt to render bot throughReactWebChat component

Expected bug behavior

Open console, expect to see errors from screenshot below.
Expect bot not to render/run

Screen Shot 2019-11-13 at 11 16 14 AM

Metadata

Metadata

Assignees

Labels

Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.customer-reportedRequired for internal Azure reporting. Do not delete.questionFurther information is requested. Stack Overflow candidate

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions