Does botframework-webchat 4.14.0 work with react 17.0.2?
See original GitHub issueCreated 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:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top GitHub Comments
When PR #4074 is merged (mid next week or sooner), all our deps should be good for
react >= 16.8.6
. 😉The current
main
release seems to have gone back to pinning the react versions to16.8.6
- will this be fixed again to allow for React 17+ ? https://github.com/microsoft/BotFramework-WebChat/blob/21ff9a1a37ce94b7018e8d1a62ca659b33c67809/package.json#L97