Cannot find module "react-select/animated" while running strapi build

I also want to upgrade v3 to v4, so do I need to go through strapiv3 to v4 migration progress.
please help me to figure it out