It is uncommon. But, it is very much a growing trend. Cashless does not mean that a credit card is the only method of payment. Many of these vendors also take debit cards, prepaid cards, and many types of digital payments (think ApplePay). In addition, some of these cashless locations also have a kiosk which converts cash to a prepaid debit card for a fee.
While there is the potential for inconvenience, the security costs associated with cash are a cost factor and the demographic which these locations seek to attract does not use cash anyway.