Understanding Rails Error Sprockets::Rails::Helper::AssetNotFound in Device::Registrations #new

Asked 2 years ago, Updated 2 years ago, 328 views

I have a question because I didn't understand the following error when creating the app in Rails.

When I checked, I ran railsasset:compile and updated the sprocket, but it was the same.
I checked if there were any other characters, but I couldn't find them, so I was having a hard time for a few hours.
Personally, I am also concerned about template, but is there anyone who knows the cause?

error:

Sprockets::Rails::Helper::AssetNotFound in Device::Registrations #new
Showing/Users/hiratashinichi/recipe-site/app/views/layouts/application.html.erb where line #10 raised:

The asset "application.css" is not present in the asset pipeline.
Extracted source (around line #10):
8
9
10
11
12
13
              
<%=stylesheet_pack_tag 'application'%>

<%=stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'%>%=javascript_pack_tag 'application', 'data-turbolinks-track': 'reload'%>
  
</head>

ruby-on-rails

2022-09-30 21:56

1 Answers

I think the following article will be helpful (answer No. 9). Could the file name application.css be conflicting?That's what it is.

https://stackoverflow.com/questions/46004615/stylesheet-pack-tag-not-finding-app-javascript-src-application-css-in-rails-5-1

I'm sorry if you're mistaken.For your information.


2022-09-30 21:56

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.