adding suffix "--legacy-peer-deps" to some packages that doesnt match with react v18, solves the issue