Newly created Stimulus controllers not loading

@ccuilla Christopher Cuilla
Fri, 02 Jan 2026 18:36:04 +0000

Has anyone see this…

I have 2-3 existing Stimulus controller (created previously). These load fine.

Today I created a couple new Stimulus controllers. But these are not being linked in and, thus, not loading at all.

Here’s :

What’s missing here are element_closer_controller.js, share_controller.js, full_screen_controller.js, and xxx_controller.js.

All of those were created today.

I’ve tried:

1. Restarting bin/dev

2. Clearing the browser cache (and testing in an “icognito” window)

3. Completely turning off my content security policy (config/initializers/content_security_policy.rb)

Nothing.

I’m guessing I must have something mis-configured. Or something changed since I created those other Stimulus controllers. But what that is isn’t obvious to me at the moment.

Has anyone experienced this problem?