Closed
Description
I am probably referring to this code segement (this is my first trial on AssetMapper):
Where the $name
variable in the foreach loop is the controller name. But when the Stimulus controller javascript file is placed under a subdirectory (e.g. in assets/controllers/admin/user_controller.js
, when assets/controllers
is the root dir) this code doesn't replace the directory separater with a double-dash (--
) according to the naming convention, which causes the resultant controller array to look like this (I am using Windows, thus the backslash):
export const eagerControllers = {"admin\users": controller_0};
The result is that calling {{ stimulus_controller('admin/users') }}
fails to work.