Matthias Danetzky
Matthias Danetzky

Reputation: 682

Flux not compiling with React 18

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 [email protected]

What is the official strategy to resolve this error?

Upvotes: 1

Views: 812

Answers (2)

saravana kumar
saravana kumar

Reputation: 1

use npm install flux --legacy-peer-deps

Upvotes: 0

monim
monim

Reputation: 4383

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

Upvotes: 2

Related Questions