Home>

Error resolution

Sprockets :: Rails :: Helper :: AssetNotFound in Skils # show
<% = stylesheet_link_tag'application', media:'all','data-turbolinks-track':'reload'%>
  <% = javascript_include_tag'application'%>
</head>
<body>
Comes out.
app/view/layouts/application.htmi.erb
code
<! DOCTYPE html>
<html>
<head>
  <title>Conduct</title>
  <% = csrf_meta_tags%>
  <% = csp_meta_tag%>
  <% = stylesheet_link_tag'application', media:'all','data-turbolinks-track':'reload'%>
  <% = javascript_include_tag'application'%>
</head>
<body>
  <% = yield%>
</body>
</html>


Code ``` app/javascript/packs/application.js

require ("turbolinks"). start ()
require ("@ rails/activestorage"). start ()
require ("channels")
window. $= window.jQuery = require ('jquery');
require ('packs/raty')
// = require jquery
// = require jquery_ujs
// = require_tree.
Code

What I tried

= javascript_pack_tag'application','data-turbolinks-track':'reload' ☚ Erase
= javascript_include_tag I tried adding'application'
Please describe here what you have tried for the problem.
Is it a problem with the aseet file? I will also post a photo for the time being. !!Ming] (248fef5e1262f7b4b6059ef5e973bd25.png)
please tell me.

Supplementary information (FW/tool version, etc.)

Please provide more detailed information here. >Quoted text

  • Answer # 1

    I erased the red letters

  • Answer # 2

    app/javascript/packs /The following is the management of Webpacker, so what you use to call itjavascript_pack_tagis.

    javascript_include_tagIs

    JavaScript that is placed on another server such as CDN and is not processed by Rails

    app/assets /The following JavaScript processed by Sprockets

    It is used for.