Lots of the retail stores in trouble were victims of high debt loads from private equity buyouts rather than major competition from online shopping.
Almost all of the major retail chains are now very competitive in online and mixed online/in-person shopping models and mall operators are re-tooling malls with a mix of retail and experiential stores and even governmental and professional services.
Even Sears looks like it might survive in some form and smart observers like Scott Galloway think its more likely than not that Amazon will buy a major department store soon to keep up with the Walmarts and Best Buy's that have effective physical footprints.