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
Sprockets erroneously looks (in config/manifest.js) for a link to controllers/application.js (whose JS files are loaded already via config/importmaps.rb):
<%= javascript_importmap_tags %> raises the error:
Sprockets::Rails::Helper::AssetNotPrecompiledError in Root#index
Asset `controllers/application.js` was not declared to be precompiled in production.
Declare links to your assets in `app/assets/config/manifest.js`.
//= link controllers/application.js
and restart your server
However, controllers/application.js has nothing to do with Sprocket's JS files - it contains JS files which are loaded via Import Maps (config/importmaps.rb).
So, Sprockets should never look for controllers/application.js in config/manifest.js (especially not when Import Maps is configured).
Sprockets erroneously looks (in
config/manifest.js
) for a link tocontrollers/application.js
(whose JS files are loaded already viaconfig/importmaps.rb
):<%= javascript_importmap_tags %>
raises the error:Sprockets::Rails::Helper::AssetNotPrecompiledError in Root#index
However,
controllers/application.js
has nothing to do with Sprocket's JS files - it contains JS files which are loaded via Import Maps (config/importmaps.rb
).So, Sprockets should never look for
controllers/application.js
inconfig/manifest.js
(especially not whenImport Maps
is configured).Environment:
The text was updated successfully, but these errors were encountered: