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.

Does botframework-webchat 4.14.0 work with react 17.0.2?

See original GitHub issue

Created a new react project with create-react-app, package.json has following versions of react and react-dom

“react”: “^17.0.2”, “react-dom”: “^17.0.2”,

Running npm install botframework-webchat results in following

npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: webchat@0.1.0 npm ERR! Found: react@17.0.2 npm ERR! node_modules/react npm ERR! react@“^17.0.2” from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@“16.8.6” from botframework-webchat@4.14.0 npm ERR! node_modules/botframework-webchat npm ERR! botframework-webchat@“*” from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Running npm install botframework-webchat --force does install it with a lot of warnings. Adding webchat to react app also works.

Just want to know if officially react 17.0.2 is supported for botframework-webchat 4.14.0 and if not, what’s the latest react version it will work with?

I am running this on a Macbook with Node version 16.6.1 and npm version 7.20.3. Exact commands used

npx create-react-app webchat-cra; cd webchat-cra; npm install
npm install botframework-webchat

regards, Yogesh

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
compulimcommented, Oct 15, 2021

When PR #4074 is merged (mid next week or sooner), all our deps should be good for react >= 16.8.6. 😉

0reactions
mikemitchelcommented, Feb 17, 2022

The current main release seems to have gone back to pinning the react versions to 16.8.6 - will this be fixed again to allow for React 17+ ? https://github.com/microsoft/BotFramework-WebChat/blob/21ff9a1a37ce94b7018e8d1a62ca659b33c67809/package.json#L97

Read more comments on GitHub >

github_iconTop Results From Across the Web

botframework-webchat - npm
A highly-customizable web-based chat client for Azure Bot Services.. Latest version: 4.15.6, last published: 23 days ago.
Read more >
Bountysource
Does botframework-webchat 4.14.0 work with react 17.0.2 ?
Read more >
botframework-webchat-component: Versions - Openbase
The CDN URL will be online in about a day after we completed publish to NPM. <script crossorigin="anonymous" integrity="sha384- ...
Read more >
botframework-webchat-component | Yarn - Package Manager
React component of botframework-webchat ... The Bot Framework Web Chat component is a highly-customizable web-based client for the Bot Framework V4 SDK.
Read more >
homebrew-cask
0‑ad 0 A.D. 0.0.26‑alpha 010‑editor 010 Editor 13.0.1 115browser 115Browser 25.0.4.2 1clipboard 1Clipboard 0.1.8
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