ActionController::UnknownFormat - After upgrade to rails 7.1

I am getting ActionController::UnknownFormat After upgrade to rails 7.1. Application was using rails UJS before. Does turbo really required to get rid of this issue?. Appreciate your help!