Skip to content

Does botframework-webchat 4.14.0 work with react 17.0.2? #4034

@yogimogi

Description

@yogimogi

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

Metadata

Metadata

Assignees

Labels

Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.bugIndicates an unexpected problem or an unintended behavior.customer-replied-toRequired for internal reporting. Do not delete.customer-reportedRequired for internal Azure reporting. Do not delete.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions