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
I get this trying to install Stimulus using the new esbuild-rails (which I guess has just been replaced by jsbundling-rails, but I think the issue holds
Uncaught TypeError: __require.context is not a function, it's from the controllers/index.js line
I'm not sure whether this is a case where the install is giving me the wrong thing (and I should be using the node install and importing all my files one-by-one) or whether there's a way to make the require work.
Thanks
The text was updated successfully, but these errors were encountered:
The latest stimulus-rails uses a different approach to loading the controllers. Right now it's "manual", but I'm working on something better. esbuild doesn't have context, though, so the old Webpack approach won't work.
Auto loading only works with import maps, and there I’m not sure it’s worth the effort. But with import maps we at least have a straight forward way to glob.
I get this trying to install Stimulus using the new
esbuild-rails
(which I guess has just been replaced byjsbundling-rails
, but I think the issue holdsUncaught TypeError: __require.context is not a function
, it's from thecontrollers/index.js
lineI'm not sure whether this is a case where the install is giving me the wrong thing (and I should be using the node install and importing all my files one-by-one) or whether there's a way to make the require work.
Thanks
The text was updated successfully, but these errors were encountered: