I'm not sure, but it looks like the following comment in your code is no longer true
# If using Hotwire, you cannot import from @rails/activestorage # instead, use skypack or similar to pull in active storage.
I was getting compile error using skypack and moving back to import { DirectUpload } from "@rails/activestorage" solved all my problems. I only have to deal with partial forms with hotwire now ;-)