{"id":10002,"date":"2021-05-22T16:39:28","date_gmt":"2021-05-22T07:39:28","guid":{"rendered":"https:\/\/www.itblog.jp\/?p=10002"},"modified":"2021-05-23T10:59:00","modified_gmt":"2021-05-23T01:59:00","slug":"laravelvue%e3%81%a7%e3%80%81component%e3%82%92%e6%9b%b4%e6%96%b0%e3%81%97%e3%81%a6%e3%82%82%e5%8f%8d%e6%98%a0%e3%81%95%e3%82%8c%e3%81%aa%e3%81%84","status":"publish","type":"post","link":"https:\/\/www.itblog.jp\/?p=10002","title":{"rendered":"Laravel+Vue\u3067\u3001Component\u3092\u66f4\u65b0\u3057\u3066\u3082\u53cd\u6620\u3055\u308c\u306a\u3044"},"content":{"rendered":"\n<p>Laravel8+Vue\u3067\u30b5\u30a4\u30c8\u3092\u69cb\u7bc9\u4e2d\u3001Vue\u306eComponent\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u66f4\u65b0\u3057\u3066\u3082\u3001\u4f55\u6545\u304b\u753b\u9762\u306b\u53cd\u6620\u3055\u308c\u306a\u304f\u3066\u56f0\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u5177\u4f53\u7684\u306b\u3044\u3046\u3068\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067Laravel\u3067Vue\u3092\u6709\u52b9\u306b\u3059\u308b\u3068\u5165\u3063\u3066\u304f\u308bExample Component\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u306f\u3001Laravel\u306e\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u306e<\/p>\n\n\n\n<p>\/resources\/js\/components\/ExampleComponent.js<\/p>\n\n\n\n<p>\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u5185\u5bb9\u3092\u30c6\u30b9\u30c8\u3067\u66f4\u65b0\u3057\u3066\u307f\u305f\u306e\u3067\u3059\u304c\u3001\u753b\u9762\u306b\u53cd\u6620\u3055\u308c\u306a\u3044\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u8b0e\u2026\u3002<\/p>\n\n\n\n<p>\u3067\u3001\u8abf\u3079\u3066\u307f\u305f\u3068\u3053\u308d\u3001\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067<\/p>\n\n\n\n<p>npm rum dev<\/p>\n\n\n\n<p>\u3092\u3057\u306a\u3044\u3068\u66f4\u65b0\u3055\u308c\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3002<\/p>\n\n\n\n<p>\u306a\u3093\u3060\u305d\u308c\u3001\u5206\u304b\u308a\u306b\u304f\u30fb\u30fb\u30fb<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u8a66\u3057\u306b\u5b9f\u884c\u3067\u3001\u30a8\u30e9\u30fc<\/p>\n\n\n\n<p>Error: Cannot find module &#8216;..\/package.json&#8217;<\/p>\n\n\n\n<p>\u3067\u3001\u8abf\u3079\u3066\u307f\u308b\u3068\u3001node_modue\u3092\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u305f\u3089\u3044\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n<p>rm -rf .\/npm_modules<\/p>\n\n\n\n<p>npm install<\/p>\n\n\n\n<p>\u3067\u3001node_module\u3092\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u3001<\/p>\n\n\n\n<p>npm rum dev\u3000\u3092\u5b9f\u884c<\/p>\n\n\n\n<p>\u4eca\u5ea6\u306f\u30a8\u30e9\u30fc\u304c\u3067\u305a\u30fb\u30fb\u30fb<\/p>\n\n\n\n<p>\u3067\u3001\u30b5\u30a4\u30c8\u3092\u898b\u306b\u884c\u304f\u3068\u3001\u3001\u3001\u3001<\/p>\n\n\n\n<p>\u66f4\u65b0\u3055\u308c\u3066\u3044\u306a\u3044 orz<\/p>\n\n\n\n<p>\u3067\u3001\u30d6\u30e9\u30a6\u30b6\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u524a\u9664\u3059\u308b\u3068\u30fb\u30fb\u30fb\u30fb<\/p>\n\n\n\n<p><strong>\u66f4\u65b0\u3055\u308c\u307e\u3057\u305f\uff01\uff01<\/strong><\/p>\n\n\n\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u5206\u304b\u308a\u306b\u304f\u304b\u3063\u305f\u3067\u3059\u304c\u3001\u4f55\u3068\u304bComponent\u3092\u66f4\u65b0\u3059\u308b\u3068\u3053\u308d\u307e\u3067\u306f\u305f\u3069\u308a\u7740\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u3053\u308c\u3060\u3051\u306e\u3053\u3068\u3067\u3001\u6700\u521d\u306f\u5927\u5909\u30fb\u30fb\u30fb<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Laravel8+Vue\u3067\u30b5\u30a4\u30c8\u3092\u69cb\u7bc9\u4e2d\u3001Vue\u306eComponent\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u66f4\u65b0\u3057\u3066\u3082\u3001\u4f55\u6545\u304b\u753b\u9762\u306b\u53cd\u6620\u3055\u308c\u306a\u304f\u3066\u56f0\u308a\u307e\u3057\u305f\u3002 \u5177\u4f53\u7684\u306b\u3044\u3046\u3068\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067Laravel\u3067Vue\u3092\u6709\u52b9\u306b\u3059\u308b\u3068\u5165\u3063\u3066\u304f\u308bExample [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[140,176,131],"tags":[],"class_list":["post-10002","post","type-post","status-publish","format-standard","hentry","category-laravel","category-vue","category-131"],"_links":{"self":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/10002","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10002"}],"version-history":[{"count":0,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/10002\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10002"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10002"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}