This repository was archived by the owner on Mar 23, 2024. It is now read-only.
This repository was archived by the owner on Mar 23, 2024. It is now read-only.
Sprockets::Rails::Helper::AssetFilteredError with requirejs_include_tag #189
Closed
Description
Last Friday, I updated my gems and it would appear that something broke what was working really well for me in the past. I now get the error mentioned in the title of the issue when trying to load pretty much anything using requirejs_include_tag like this:
<%= requirejs_include_tag "view_specific_script" %>
I have a layered build setup with common code (application.js) and controller/view specific code that depended on it in when necessary.
I can get it to load in development by doing something like this:
<%= requirejs_include_tag %>
<script>
require(['view_specific_script']);
</script>
Of course, then it won't properly reference the script in production. I put together a test project from scratch that shows this behavior:
https://github.com/chriskozlowski/require-loading-test
I am hoping that something in my configs just got messed up or something simple...
Metadata
Metadata
Assignees
Labels
No labels