author avatar

giritharan

Wed Jun 19 2024

After pushing my changes to the Fly, I noticed that my Application JS controller wasn't being found. The problem was due to an incorrect line in app/javascript/controllers/application.js. It originally had:

import { application } from "./application";

To fix it, I changed it to:

import { application } from "controllers/application";

These changes ensured that the request was directed to the correct location, and the Stimulus JS controller started working.

#stimulus #assert-not-loading #rails