While I do get the benefits of online delivery to customers (especially in the current pandemic situation or for people too old or impaired to walk/drive), the situation is much more dire for their communities across the world:
1) Many towns rely on some sort of commercial tax on local companies to fund their operations. Amazon however only pays taxes where they employ people (i.e. some random small-ish villages near highways), but not where they sell stuff - this means that as more sales shift from physical retail to online, the funding of the town goes down.
2) With delivery of food taking over, small stores that enable local people to buy e.g. groceries without needing a car get unprofitable which means they go six feet under and people are forced to drive to the next town having a Walmart or other kind of large supermarket.
3) The more stores close, the less attractive the mall or the area becomes. "Storefront blight" makes an area less attractive to potential and existing residents, invites vandals (smashed glasses, graffiti, ...) which in the worst case creates a negative self-reinforcing spiral to the bottom. Additionally, the jobs that are lost there may (!) be replaced on a national level by additional hirings in Amazon warehouses or delivery companies, but again, as delivery centers tend to be centralized, this creates another loss for the communities. Depending on the country, this job loss may hit communities further when the community is responsible for unemployment or other social benefits (e.g. housing) and not the state/federal government.
4) The tax loss also hits the countries: Amazon (and other mega corporations such as IKEA) can and do exploit complex tax loopholes to avoid as much corporate tax as they can.