You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using Debian Rails which is at 6.1 for the time being. Note that this Rails version isn't deprecated and will continue to receive security fixes even after Rails stops supporting it, unless there is a new stable Debian.
Using definitionsFromContext from the @hotwired/stimulus-webpack-helpers package does not mark Stimulus controllers as registered.
import{definitionsFromContext}from'@hotwired/stimulus-webpack-helpers';constapplication=Application.start(document.documentElement);// Normally you'd need to add the webpack env types, but since we'll migrate// away (in Rails 7), and we know the signatures here, it's ignored and casted// as any instead.// @ts-ignore// eslint-disable-next-line no-undefconstcontext=require.context('../controllers',true,/_controller\.ts$/);application.load(definitionsFromContext(context));declareconstwindow: Window&{Stimulus: Application};window.Stimulus=application;
The result in the Stimulus Controllers view:
I don't know if this is related, but I don't see any autocompletion in .html.erb files. I would expect them to not show for unregistered controllers, hence me opening this issue.
Trying to circumvent it by using the Register controller definition on the stimulus application yields the following error message:
The text was updated successfully, but these errors were encountered:
We are using Debian Rails which is at
6.1
for the time being. Note that this Rails version isn't deprecated and will continue to receive security fixes even after Rails stops supporting it, unless there is a new stable Debian.Using
definitionsFromContext
from the@hotwired/stimulus-webpack-helpers
package does not mark Stimulus controllers as registered.The result in the Stimulus Controllers view:
I don't know if this is related, but I don't see any autocompletion in
.html.erb
files. I would expect them to not show for unregistered controllers, hence me opening this issue.Trying to circumvent it by using the
Register controller definition on the stimulus application
yields the following error message:The text was updated successfully, but these errors were encountered: