BotFramework-WebChat icon indicating copy to clipboard operation
BotFramework-WebChat copied to clipboard

Unable to use [email protected] with React @16.13.*

Open nikhil1746 opened this issue 4 years ago • 4 comments

Is there any way to use botframework-webchat with React 16.13 version? Currently, it supports [email protected]

image

Please suggest if there is any workaround for React 16.13 version as I don't have the option to change the version react version currently.

nikhil1746 avatar Jun 20 '21 13:06 nikhil1746

At the moment, the only option you have is to clone the repo, upgrade React manually, and build it locally. However, I don't know what repercussions / errors may surface from doing this. Be aware that while this is certainly an option, support won't be provided for custom builds.

I've marked this as a feature request, in the meantime. @compulim, can you comment on Web Chat's roadmap as it pertains to React versioning?

stevkan avatar Jun 21 '21 18:06 stevkan

Any update on this? as I am getting similar error while installing botframework-webchat with latest npm or react version.

Sharvani17 avatar Jul 09 '21 18:07 Sharvani17

Version 4.14.1 on npm seems to fix this issue by setting react and react-dom as peer dependencies of 16.8.6 or greater, but the current main branch package.json still has them pegged at 16.8.6. There was a recent dependency bump 13 days ago - was that a typo or error to roll back to have the react versions locked at 16.8.6?

https://github.com/microsoft/BotFramework-WebChat/blob/21ff9a1a37ce94b7018e8d1a62ca659b33c67809/package.json#L97-L98

mitch-mitchel avatar Feb 23 '22 19:02 mitch-mitchel

@mikemitchel the package.json at the root level is not published (mono-repo). Most packages under /packages/* are published.

image

I searched and all publishing packages are >= 16.8.6. (The first one is root.)

compulim avatar Mar 01 '22 04:03 compulim