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
The asset "primer.js" is not present in the asset pipeline.
when adding javascript_include_tag. I guess for rails apps using sprockets it is needed to include in the documentation to add a primer line into manifest.js file too, however in this gem I only see exposed primer_view_components.js, not primer.js.
Many thanks
The text was updated successfully, but these errors were encountered:
muriloime
changed the title
Not working with new rails app
JS Not working with new rails app
Jan 6, 2022
Hey @muriloime, thanks for bringing this up, and apologies for missing it! As you discovered, the fix is to use <%= javascript_include_tag("primer_view_components") %> instead. The docs should be fixed once this PR lands.
Hi all,
I followed the instructions as per https://primer.style/view-components/#installation in a new rails 7 app, but I get the following error
The asset "primer.js" is not present in the asset pipeline.
when adding javascript_include_tag. I guess for rails apps using sprockets it is needed to include in the documentation to add a primer line into manifest.js file too, however in this gem I only see exposed
primer_view_components.js
, notprimer.js
.Many thanks
The text was updated successfully, but these errors were encountered: