rails / sprockets

Rack-based asset packaging system
MIT License
932 stars 792 forks source link

couldn't find file ... with type 'application/javascript' when using *.js.jst.ejs.slim #802

Open profyarborough opened 4 months ago

profyarborough commented 4 months ago

Hi, my issues seems to be related to a post a while ago: https://github.com/rails/sprockets/issues/497

So we recently updated sprockets. This removed some template imports in some js functions. When I now want to import the templates again (*.js.jst.ejs.slim files) I get the message from above. I am not sure what to do. I guess either I need to convert my templates into the expected .js file or I need to tweak something in the sprockets config. Since I haven't really worked with sprockets yet I don't know what to do.

Do you have an idea? It seems like the above linked issue has been resolved through a gem update back in the days?

Greets