{"id":780,"date":"2022-10-07T11:47:24","date_gmt":"2022-10-07T02:47:24","guid":{"rendered":"https:\/\/www.fsquare.co.kr\/?p=780"},"modified":"2024-11-12T12:50:34","modified_gmt":"2024-11-12T03:50:34","slug":"nativescript-vue-build%ec%97%90%eb%9f%ac%ea%b0%80-%eb%82%98%eb%8a%94-%ea%b2%bd%ec%9a%b0-1","status":"publish","type":"post","link":"https:\/\/www.fsquare.co.kr\/?p=780","title":{"rendered":"Nativescript-vue  Build\uc5d0\ub7ec\uac00 \ub098\ub294 \uacbd\uc6b0 -(1)"},"content":{"rendered":"<p>Nativescript-vue Build \uc5d0\ub7ec\uac00 \ub098\ub294 \uacbd\uc6b0\ub294 \ub9e4\uc6b0 \ub2e4\uc591\ud55c\ub370 camera \ubaa8\ub4c8\uc744 \ucd94\uac00\ud560 \ub54c \uc5b4\ub5a4\uac78 \ud574\uc57c \ud560\uc9c0 \ubab0\ub77c \uc774\uac83 \uc800\uac83 \ub9c9 \ucd94\uac00\ud558\ub2e4\ubcf4\ub2c8 library\uac00 \ucda9\ub3cc\uc744 \uc77c\uc73c\ucf30\ub2e4. Camera \ubaa8\ub4c8\uc744 \ucd94\uac00\ud588\ub294\ub370<\/p>\r\n\r\n<pre class=\"wp-block-preformatted\">WARNING in ..\/node_modules\/nativescript-camera\/camera.android.js 20:24-63\r\nModule not found: Error: Can't resolve 'tns-core-modules\/utils\/types' in 'C:\\Project\\Vue\\node_modules\\nativescript-camera'\r\n\r\n...\r\n\r\nWARNING in ..\/node_modules\/nativescript-camera\/camera.android.js 64:34-73\r\nModule not found: Error: Can't resolve 'tns-core-modules\/application' in 'C:\\Project\\Vue\\node_modules\\nativescript-camera'<\/pre>\r\n\r\n\r\n\r\n<p>\uc640 \uac19\uc740 \uc5d0\ub7ec\uac00 5\uac1c\uac00 \ub3d9\uc2dc\uc5d0 \ub5b4\ub2e4. \ud544\uc694 \uc5c6\ub294 \ubaa8\ub4c8\uc744 \uc9c0\uc6b0\ub824\uace0 npm uninstall \uba85\ub839\uc744 \ud574 \ubd10\ub3c4 \uc18c\uc6a9\uc774 \uc5c6\uace0 plugin\uc744 \uc5b4\ub5bb\uac8c \ud558\ub098\uc529 \uc9c0\uc6b0\ub294\uc9c0 \uc54c\uc218\ub3c4 \uc5c6\uc5b4\uc11c \uc778\ud130\ub137\uc744 \uc5ec\uae30 \uc800\uae30 \ub4a4\uc838\uc11c \ucc3e\uc740 \ubc29\ubc95\uc740<\/p>\r\n\r\n\r\n\r\n<p>1. <strong>ns clean\uc73c\ub85c \uc815\ub9ac<\/strong><\/p>\r\n\r\n\r\n\r\n<p>&nbsp;<\/p>\r\n\r\n\r\n\r\n<p>\uba3c\uc800 \ud504\ub85c\uc81d\ud2b8 \ud3f4\ub354\uc5d0\uc11c ns clean \uc73c\ub85c nativescript\uc758 plugin\uc744 \uc77c\ub2e8 \ubaa8\ub450 \uc815\ub9ac\ud55c\ub2e4.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">C:\\project\\vue\\myFarm&gt; <strong>ns clean<\/strong>\r\n- Cleaning project...\r\n\u221a Cleaned directory hooks\r\n\u221a Cleaned directory platforms\r\n\u221a Cleaned directory node_modules\r\n\u221a Cleaned file package-lock.json\r\n\u221a Project successfully cleaned.\r\n\r\nC:\\project\\vue\\myFarm&gt; <strong>npm list<\/strong>\r\nmyFarm@1.0.0 C:\\Project\\Vue\\myFarm\r\n+-- UNMET DEPENDENCY @nativescript\/android@8.3.1\r\n+-- UNMET DEPENDENCY @nativescript\/core@~8.3.0\r\n+-- UNMET DEPENDENCY @nativescript\/preview-cli@1.0.1\r\n+-- UNMET DEPENDENCY @nativescript\/theme@~3.0.2\r\n+-- UNMET DEPENDENCY @nativescript\/webpack@~5.0.6\r\n+-- UNMET DEPENDENCY nativescript-vue-template-compiler@~2.9.0\r\n`-- UNMET DEPENDENCY nativescript-vue@~2.9.0\r\n\r\nnpm ERR! code ELSPROBLEMS\r\nnpm ERR! missing: @nativescript\/android@8.3.1, required by myFarm@1.0.0\r\nnpm ERR! missing: @nativescript\/core@~8.3.0, required by myFarm@1.0.0\r\nnpm ERR! missing: @nativescript\/preview-cli@1.0.1, required by myFarm@1.0.0\r\nnpm ERR! missing: @nativescript\/theme@~3.0.2, required by myFarm@1.0.0\r\nnpm ERR! missing: @nativescript\/webpack@~5.0.6, required by myFarm@1.0.0\r\nnpm ERR! missing: nativescript-vue-template-compiler@~2.9.0, required by myFarm@1.0.0\r\nnpm ERR! missing: nativescript-vue@~2.9.0, required by myFarm@1.0.0\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     C:\\Users\\Admin\\AppData\\Local\\npm-cache\\_logs\\2022-10-03T04_37_37_063Z-debug-0.log\r\n<\/pre>\r\n\r\n\r\n\r\n<p><strong>2. package.json \uc218\uc815<\/strong><\/p>\r\n\r\n\r\n\r\n<p>\uc774 \uc0c1\ud0dc\uc5d0\uc11c build\ub97c \ud558\uba74 \ub2e4\uc2dc \uc7ac\uc124\uce58\ub418\uc5b4 \ubc84\ub9ac\ubbc0\ub85c \ud504\ub85c\uc81d\ud2b8\uc758 package.json \ud30c\uc77c\uc744 \uc218\uc815\ud55c\ub2e4.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.fsquare.co.kr\/wp-content\/uploads\/2022\/10\/image-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"231\" height=\"426\" class=\"wp-image-782\" src=\"https:\/\/www.fsquare.co.kr\/wp-content\/uploads\/2022\/10\/image-1.png\" alt=\"\" srcset=\"https:\/\/www.fsquare.co.kr\/wp-content\/uploads\/2022\/10\/image-1.png 231w, https:\/\/www.fsquare.co.kr\/wp-content\/uploads\/2022\/10\/image-1-163x300.png 163w\" sizes=\"auto, (max-width: 231px) 100vw, 231px\" \/><\/a><\/figure>\r\n\r\n\r\n\r\n<p>\ud30c\uc77c\uc744 \uc5f4\uc5b4\ubcf4\uba74 dependencies \ud56d\ubaa9\uc5d0 \ucd94\uac00 \uc124\uce58\ub41c plugin \ub4e4\uc774 \ud3ec\ud568\ub418\uc5b4 \uc788\ub2e4. \uc774 \uc911 \ud544\uc694\uc5c6\ub294 library\/plugin\uc744 \uc0ad\uc81c\ud558\uace0 \uc800\uc7a5\ud55c\ub2e4.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">[ package.json \ud30c\uc77c ]\r\n{\r\n  \"name\": \"myFarm\",\r\n  \"main\": \"app\/app.js\",\r\n  \"version\": \"1.0.0\",\r\n  \"private\": true,\r\n  \"dependencies\": {\r\n    \"@nativescript\/camera\": \"^5.0.13\",\r\n    \"@nativescript\/core\": \"~8.3.0\",\r\n    \"@nativescript\/theme\": \"~3.0.2\",\r\n    \"nativescript-camera\": \"^4.5.0\",\r\n    \"nativescript-vue\": \"~2.9.0\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"@nativescript\/android\": \"8.3.1\",\r\n    \"@nativescript\/preview-cli\": \"1.0.1\",\r\n    \"@nativescript\/webpack\": \"~5.0.6\",\r\n    \"nativescript-vue-template-compiler\": \"~2.9.0\"\r\n  }\r\n}\r\n<\/pre>\r\n\r\n\r\n\r\n<p><strong>3. build<\/strong><\/p>\r\n\r\n\r\n\r\n<p>\uadf8 \ub2e4\uc74c \ub2e4\uc2dc \ud544\uc694\ud55c plugin\uc744 \uc124\uce58\ud558\uac70\ub098 build \ub610\ub294 android\ub97c \uc2e4\ud589\ud558\uba74 \ud544\uc694\ud55c \ub77c\uc774\ube0c\ub7ec\ub9ac\uac00 \uc124\uce58\ub41c\ub2e4.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">C:\\project\\vue\\myFarm&gt; ns run android<\/pre>\r\n","protected":false},"excerpt":{"rendered":"<p>Nativescript-vue Build \uc5d0\ub7ec\uac00 \ub098\ub294 \uacbd\uc6b0\ub294 \ub9e4\uc6b0 \ub2e4\uc591\ud55c\ub370 camera \ubaa8\ub4c8\uc744 \ucd94\uac00\ud560 \ub54c \uc5b4\ub5a4\uac78 \ud574\uc57c \ud560\uc9c0 \ubab0\ub77c \uc774\uac83 \uc800\uac83 \ub9c9 \ucd94\uac00\ud558\ub2e4\ubcf4\ub2c8 library\uac00 \ucda9\ub3cc\uc744 \uc77c\uc73c\ucf30\ub2e4. Camera \ubaa8\ub4c8\uc744 \ucd94\uac00\ud588\ub294\ub370 WARNING in ..\/node_modules\/nativescript-camera\/camera.android.js 20:24-63 Module not found: Error: Can&#8217;t resolve &#8216;tns-core-modules\/utils\/types&#8217; in &#8216;C:\\Project\\Vue\\node_modules\\nativescript-camera&#8217; &#8230; WARNING in ..\/node_modules\/nativescript-camera\/camera.android.js 64:34-73 Module not found: Error: Can&#8217;t resolve &#8216;tns-core-modules\/application&#8217; in &#8216;C:\\Project\\Vue\\node_modules\\nativescript-camera&#8217; \uc640 \uac19\uc740 \uc5d0\ub7ec\uac00 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36,28],"tags":[],"class_list":["post-780","post","type-post","status-publish","format-standard","hentry","category-nativescript","category-vue"],"_links":{"self":[{"href":"https:\/\/www.fsquare.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fsquare.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fsquare.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fsquare.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fsquare.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=780"}],"version-history":[{"count":5,"href":"https:\/\/www.fsquare.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/780\/revisions"}],"predecessor-version":[{"id":1009,"href":"https:\/\/www.fsquare.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/780\/revisions\/1009"}],"wp:attachment":[{"href":"https:\/\/www.fsquare.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fsquare.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fsquare.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}