I just solved this problem by changing the import paths to @strapi/design-system/dist/themes’; and ‘@strapi/icons/dist/CarretDown’.
I think the latest Strapi version has a slightly different folder structure adding a dist folder to the paths for these dependencies.