{"id":6389,"date":"2021-02-05T09:42:32","date_gmt":"2021-02-05T00:42:32","guid":{"rendered":"https:\/\/yumishin.com\/?p=6389"},"modified":"2021-02-05T09:42:32","modified_gmt":"2021-02-05T00:42:32","slug":"webpacker-error","status":"publish","type":"post","link":"https:\/\/yumishin.com\/?p=6389","title":{"rendered":"Webpacker::Manifest::MissingEntryError\u306e\u5bfe\u51e6\u6cd5"},"content":{"rendered":"<p>\u3069\u3046\u3082\u3002<\/p>\n<p>\u4eca\u56de\u3001MacOS\u3092\u30af\u30ea\u30fc\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u305d\u306e\u5f8cGithub\u304b\u3089Rails\u30a2\u30d7\u30ea\u3092\u30d7\u30eb\u3057\u3066\u304d\u307e\u3057\u305f\u3002\u305d\u306e\u30a2\u30d7\u30ea\u3092localhost:3000\u3067\u898b\u3088\u3046\u3068\u601d\u3044\u3001<code>rails s<\/code>\u3057\u305f\u7d50\u679c\u3001\u30a8\u30e9\u30fc\u304c\u3067\u3066\u3001\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u306e\u3067\u3001\u305d\u306e\u5bfe\u51e6\u6cd5\u306b\u3064\u3044\u3066\u7c21\u5358\u306b\u307e\u3068\u3081\u3066\u304a\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2 id=\"i-0\">Webpacker::Manifest::MissingEntryError\u304c\u3067\u305f\u6642\u306e\u5bfe\u51e6\u6cd5<\/h2>\n<h3 id=\"i-1\">\u30a8\u30e9\u30fc\u30b3\u30fc\u30c9<\/h3>\n<header>\n<div class=\"pre_tag\"><span><i class=\"fa fa-code\"><\/i> \u30a8\u30e9\u30fc\u30b3\u30fc\u30c9<\/span><\/p>\n<pre><code>Webpacker::Manifest::MissingEntryError in TopPages#home\n\nShowing&nbsp;\/Users\/shinji\/environment\/habits_app\/app\/views\/layouts\/application.html.erb&nbsp;where line&nbsp;#10&nbsp;raised:\n\nWebpacker can't find application.js in \/Users\/shinji\/environment\/habits_app\/public\/packs\/manifest.json. Possible causes:\n1. You want to set webpacker.yml value of compile to true for your environment\n   unless you are using the `webpack -w` or the webpack-dev-server.\n2. webpack has not yet re-run to reflect updates.\n3. You have misconfigured Webpacker's config\/webpacker.yml file.\n4. Your webpack configuration is not creating a manifest.\nYour manifest contains:\n{\n}<\/code><\/pre>\n<\/div>\n<h3 id=\"i-2\">\u7d50\u8ad6<\/h3>\n<p>Webpacker.yml\u304c\u306a\u3044\u3053\u3068\u304c\u539f\u56e0\u3002Webpacker\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30b3\u30f3\u30d1\u30a4\u30eb\u3092\u884c\u3048\u3070OK\u306a\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3002<\/p>\n<div class=\"pre_tag\"><span><i class=\"fa fa-code\"><\/i> \u30b3\u30fc\u30c9<\/span><\/p>\n<pre><code>rails webpacker:install\nrails webpacker:compile<\/code><\/pre>\n<\/div>\n<h3 id=\"i-3\">\u30a8\u30e9\u30fc\u306e\u5185\u5bb9\u306b\u3064\u3044\u3066<\/h3>\n<p>Google\u7ffb\u8a33\u5148\u751f\u306b\u30a8\u30e9\u30fc\u5185\u5bb9\u3092\u3076\u3061\u8fbc\u3093\u3060\u7d50\u679c\u304c\u4ee5\u4e0b\u3067\u3059\u3002<\/p>\n<blockquote>\n<pre id=\"tw-target-text\" class=\"tw-data-text tw-text-large XcVN5d tw-ta\" dir=\"ltr\" data-placeholder=\"\u7ffb\u8a33\"><span lang=\"ja\">1. `webpack -w`\u307e\u305f\u306fwebpack-dev-server\u3092\u4f7f\u7528\u3057\u3066\u3044\u306a\u3044\u9650\u308a\u3001\u3054\u4f7f\u7528\u306e\u74b0\u5883\u3067compile\u306ewebpacker.yml\u5024\u3092true\u306b\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \n2. webpack\u306f\u3001\u66f4\u65b0\u3092\u53cd\u6620\u3059\u308b\u305f\u3081\u306b\u307e\u3060\u518d\u5b9f\u884c\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002 \n3.Webpacker\u306econfig \/ webpacker.yml\u30d5\u30a1\u30a4\u30eb\u3092\u8aa4\u3063\u3066\u69cb\u6210\u3057\u307e\u3057\u305f\u3002 \n4.Webpack\u69cb\u6210\u304c\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/span><\/pre>\n<\/blockquote>\n<p>\u8981\u3059\u308b\u306bwebpacker.yml\u30d5\u30a1\u30a4\u30eb\u304c\u306a\u3044\u3088\u3068\u8a00\u3063\u3066\u307e\u3059\u3002\u3053\u306ewebpacker.yml\u306f\u305d\u3082\u305d\u3082webpacker\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3051\u308c\u3070\u3001\u4f5c\u3089\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3068\u8a00\u3046\u308f\u3051\u3067Webpacker\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308c\u3070webpcker.yml\u304c\u4f5c\u3089\u308c\u3066\u89e3\u6c7a\u3068\u8a00\u3046\u308f\u3051\u3067\u3059\u3002<\/p>\n<h3 id=\"i-4\">\u3061\u306a\u307f\u306b<\/h3>\n<p>\u3061\u306a\u307f\u306b<code>rails webpacker:install<\/code>\u3092\u3057\u305f\u969b\u306b\u300cnode\u300d\u3084\u300cyarn\u300d\u304c\u5165\u3063\u3066\u3044\u306a\u3044\u3068\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u306a\u3044\u3068\u6012\u3089\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>node\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f<a href=\"https:\/\/qiita.com\/kyosuke5_20\/items\/c5f68fc9d89b84c0df09\">Mac\u306bNode.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a>\u304c\u308f\u304b\u308a\u3084\u3059\u3044\u3067\u3059\u3002\u307e\u305fyarn\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5834\u5408\u306f<a href=\"https:\/\/qiita.com\/suisui654\/items\/1b89446e03991c7c2c3d\">yarn\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/a>\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/header>\n","protected":false},"excerpt":{"rendered":"<p>\u3069\u3046\u3082\u3002 \u4eca\u56de\u3001MacOS\u3092\u30af\u30ea\u30fc\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u305d\u306e\u5f8cGithub\u304b\u3089Rails\u30a2\u30d7\u30ea\u3092\u30d7\u30eb\u3057\u3066\u304d\u307e\u3057\u305f\u3002\u305d\u306e\u30a2\u30d7\u30ea\u3092localhost:3000\u3067\u898b\u3088\u3046\u3068\u601d\u3044\u3001rails s\u3057\u305f\u7d50\u679c\u3001\u30a8\u30e9\u30fc\u304c\u3067\u3066\u3001\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e &#8230; <\/p>\n","protected":false},"author":1,"featured_media":6393,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[272],"tags":[],"class_list":{"0":"post-6389","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-programing","8":"entry"},"_links":{"self":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/6389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6389"}],"version-history":[{"count":3,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/6389\/revisions"}],"predecessor-version":[{"id":6392,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/6389\/revisions\/6392"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/media\/6393"}],"wp:attachment":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}