alewin/useWorker

Compatability Issue with react@17.0.2

reese1515 opened this issue ยท 7 comments

I'm using react ^17.0.2 and when I attempted to do the install i'm getting the following error
$ npm install --save @koale/useworker
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: client-app@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.0" from @koale/useworker@4.0.2
npm ERR! node_modules/@koale/useworker
npm ERR! @koale/useworker@"*" 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.

Is this meant to work with react version 17+ or would I need to go back to version 16?

Ran into the same error, please help. In addition, it would be ideal to also support React 18.

Any update on compatibility with new react versions?

I will fix this in the next release, thanks

@alewin do you have an estimate ? Getting the same ERR with "react": "18.2.0",

Me too

I will fix this in the next release, thanks

Is it now fixed

Over a year now @alewin , please? There's a 5.0.0 version out there because of the 16.8.0 peer dependency