I converted a controller to a TS file, and now it’s throwing the error for the following line:
import { Controller } from "@hotwired/stimulus"
Cannot find module '@hotwired/stimulus' or its corresponding type declarations.ts(2307)
Rails version: Rails 7.1.3.4
Pretty much out of the box configuration, this file was working fine as a JS file, but the error came over when I changed the file extension. I changed the rest of the file to functional typescript already, but this still remains an issue.