I got same error too and i tried all of the things that what already wrote but it didn't work. The problem wasn't about ujs, turbo, importmap. Another post guiding me while i was solving the problem.
devise_scope :user do
get '/users/sign_out' => 'devise/sessions#destroy'
end