{"id":7710,"date":"2022-02-04T05:52:32","date_gmt":"2022-02-03T20:52:32","guid":{"rendered":"https:\/\/yumishin.com\/?p=7710"},"modified":"2022-02-04T05:52:32","modified_gmt":"2022-02-03T20:52:32","slug":"tailwind-error","status":"publish","type":"post","link":"https:\/\/yumishin.com\/?p=7710","title":{"rendered":"Tailwind\u306eProduction\u74b0\u5883\u3078\u306e\u30c7\u30d7\u30ed\u30a4\u6642\u306e\u30a8\u30e9\u30fc"},"content":{"rendered":"<p>\u4eca\u56de\u306fTailwind\u306eProduction\u74b0\u5883\u3078\u306e\u30c7\u30d7\u30ed\u30a4\u6642\u306e\u30a8\u30e9\u30fc\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\">Tailwind\u306eProduction\u74b0\u5883\u3078\u306e\u30c7\u30d7\u30ed\u30a4\u6642\u306e\u30a8\u30e9\u30fc<\/h2>\n<h3 id=\"i-1\">\u30a8\u30e9\u30fc\u5185\u5bb9<\/h3>\n<div class=\"pre_tag\"><span><i class=\"fa fa-code\"><\/i> \u30bf\u30fc\u30df\u30ca\u30eb<\/span><\/p>\n<pre><code>#!\/bin\/bash -eo pipefail\nbundle exec rspec\n\nUser\n  \u30e6\u30fc\u30b6\u30fc\u306b\u95a2\u3059\u308b\u30c6\u30b9\u30c8\n    \u6709\u52b9\u306a\u30e6\u30fc\u30b6\u30fc\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4fdd\u5b58\u3055\u308c\u308b\n    \u540d\u524d\u304c\u5165\u529b\u3055\u308c\u3066\u3044\u306a\u3044\u30e6\u30fc\u30b6\u30fc\u306f\u4fdd\u5b58\u3055\u308c\u306a\u3044\n\nUsers\n  \u30e6\u30fc\u30b6\u30fc\u95a2\u9023\u30da\u30fc\u30b8\n    \u30e6\u30fc\u30b6\u30fc\u4e00\u89a7\u30da\u30fc\u30b8\u304c\u6b63\u5e38\u306b\u8868\u793a\u3055\u308c\u308b (FAILED - 1)\n\nFailures:\n\n  1) Users \u30e6\u30fc\u30b6\u30fc\u95a2\u9023\u30da\u30fc\u30b8 \u30e6\u30fc\u30b6\u30fc\u4e00\u89a7\u30da\u30fc\u30b8\u304c\u6b63\u5e38\u306b\u8868\u793a\u3055\u308c\u308b\n     Failure\/Error: &lt;%= stylesheet_link_tag \"tailwind\", \"inter-font\", \"data-turbo-track\": \"reload\" %&gt;\n     \n     ActionView::Template::Error:\n       Asset `tailwind.css` was not declared to be precompiled in production.\n       Declare links to your assets in `app\/assets\/config\/manifest.js`.\n     \n         \/\/= link tailwind.css\n     \n       and restart your server\n     # .\/app\/views\/layouts\/application.html.erb:8:in `_app_views_layouts_application_html_erb___1742723256328076644_25640'\n     # :90:in `tap'\n     # .\/spec\/system\/users_spec.rb:6:in `block (3 levels) in...\n\uff08\u7701\u7565\uff09<\/code><\/pre>\n<\/div>\n<p>\u7d50\u8ad6\u304b\u3089\u8a00\u3046\u3068\ud83d\udc46\u306e\u30a8\u30e9\u30fc\u6587\u306b\u66f8\u3044\u3066\u3042\u308b\u3088\u3046\u306bmanifest.js\u306b\u8a18\u8ff0\u3092\u8ffd\u8a18\u3057\u3066\u3042\u3052\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306bmanifest.js\u306e\u6700\u7d42\u884c\u306b\u8a18\u8ff0\u3092\u8ffd\u52a0\u3057\u307e\u3059<\/p>\n<div class=\"pre_tag\"><span><i class=\"fa fa-code\"><\/i> app\/assets\/config\/manifest.js<\/span><\/p>\n<pre><code>(\u7701\u7565)\n\/\/= link tailwind.css # \u6700\u7d42\u884c\u306b\u8ffd\u8a18\n<\/code><\/pre>\n<\/div>\n<p>\u3082\u3046\u4e00\u5ea6rspec\u3092\u52d5\u304b\u3057\u3066\u307f\u308b\u3068\u3001\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u307e\u3059\u3002<\/p>\n<div class=\"pre_tag\"><span><i class=\"fa fa-code\"><\/i> \u30b3\u30fc\u30c9<\/span><\/p>\n<pre><code>User\n  \u30e6\u30fc\u30b6\u30fc\u306b\u95a2\u3059\u308b\u30c6\u30b9\u30c8\n    \u6709\u52b9\u306a\u30e6\u30fc\u30b6\u30fc\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4fdd\u5b58\u3055\u308c\u308b\n    \u540d\u524d\u304c\u5165\u529b\u3055\u308c\u3066\u3044\u306a\u3044\u30e6\u30fc\u30b6\u30fc\u306f\u4fdd\u5b58\u3055\u308c\u306a\u3044\n\nUsers\n  \u30e6\u30fc\u30b6\u30fc\u95a2\u9023\u30da\u30fc\u30b8\n    \u30e6\u30fc\u30b6\u30fc\u4e00\u89a7\u30da\u30fc\u30b8\u304c\u6b63\u5e38\u306b\u8868\u793a\u3055\u308c\u308b\n\nFinished in 1.47 seconds (files took 1.8 seconds to load)\n3 examples, 0 failures<\/code><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306fTailwind\u306eProduction\u74b0\u5883\u3078\u306e\u30c7\u30d7\u30ed\u30a4\u6642\u306e\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u7c21\u5358\u306b\u307e\u3068\u3081\u3066\u304a\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 Tailwind\u306eProduction\u74b0\u5883\u3078\u306e\u30c7\u30d7\u30ed\u30a4\u6642\u306e\u30a8\u30e9\u30fc \u30a8\u30e9\u30fc\u5185\u5bb9 \u7d50\u8ad6\u304b\u3089\u8a00\u3046\u3068\ud83d\udc46\u306e\u30a8\u30e9\u30fc\u6587\u306b &#8230; <\/p>\n","protected":false},"author":1,"featured_media":7812,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[256],"tags":[],"class_list":{"0":"post-7710","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-it","8":"entry"},"_links":{"self":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/7710","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=7710"}],"version-history":[{"count":3,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/7710\/revisions"}],"predecessor-version":[{"id":7814,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/7710\/revisions\/7814"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/media\/7812"}],"wp:attachment":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}