Flux not compiling with React 18

Viewed 23

Flux is not working with react 18. Error is:

npm ERR! Could not resolve dependency:
npm ERR! peer react@"^15.0.2 || ^16.0.0 || ^17.0.0" from flux@4.0.3

What is the official strategy to resolve this error?

1 Answers

Flux library is no longer being updated and not compatible with React 18 . just migrate to another store instead or downgrade react version.

there are many more sophisticated alternatives available (e.g. Redux...) check it in the flux library

Related