Rails 7 + Tailwindcss Build Fails

I ended up just rewriting the two javascript files I had as Stimulus Controllers, which seem to have circumvented the problem.