๋ณธ๋ฌธ์œผ๋กœ ๊ฑด๋„ˆ๋›ฐ๊ธฐ

Nuxt build ์˜ค๋ฅ˜ ๐ŸŒ

ยท ์•ฝ 2๋ถ„
์‹ฌ์™„

Github Codespaces๋กœ ์ž‘์—… ์ค‘, nuxt build ๊ณผ์ •์—์„œ The "name" argument must be specified ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค.

์˜ค๋ฅ˜ ๋‹น์‹œ ํ™˜๊ฒฝโ€‹

  • Node ๋ฒ„์ „ : v19.9.0
  • Nuxt ๋ฒ„์ „ : v3.3.1

error-log

๋กœ๊ทธ๋ฅผ ํ™•์ธํ•ด๋ณด๋‹ˆ nuxt์— ๋ฌธ์ œ๊ฐ€ ์žˆ์–ด๋ณด์ž…๋‹ˆ๋‹ค.

# This file contains the result of Yarn building a package (admin@workspace:apps/admin)
# Script name: postinstall

Nuxi 3.3.1

ERROR The "name" argument must be specified

at new NodeError (node:internal/errors:399:5)
at Performance.mark (node:internal/perf/performance:125:13)
at normalizedModule (/workspaces/vinami/node_modules/@nuxt/kit/dist/index.mjs:168:30)
at async installModule (/workspaces/vinami/node_modules/@nuxt/kit/dist/index.mjs:451:15)
at async initNuxt (/workspaces/vinami/node_modules/nuxt/dist/index.mjs:2469:7)
at async loadNuxt (/workspaces/vinami/node_modules/nuxt/dist/index.mjs:2523:5)
at async loadNuxt (/workspaces/vinami/node_modules/@nuxt/kit/dist/index.mjs:539:19)
at async Object.invoke (/workspaces/vinami/node_modules/nuxi/dist/chunks/prepare.mjs:37:18)
at async _main (/workspaces/vinami/node_modules/nuxi/dist/cli.mjs:49:20)

๊ตฌ๊ธ€์— ERROR The "name" argument must be specified๋กœ ๊ฒ€์ƒ‰ํ•ด๋ณด๋‹ˆ ๋‹คํ–‰ํžˆ nuxt github์— ์ด๋ฏธ ๋ˆ„๊ตฐ๊ฐ€ ์ด์Šˆ๋ฅผ ๋“ฑ๋กํ•ด๋’€์Šต๋‹ˆ๋‹ค.

ํ•ด๊ฒฐ๋ฐฉ๋ฒ•โ€‹

์˜ˆ์ƒ๋Œ€๋กœ nuxt์™€ Node v19 ๊ฐ„์— ๋ฌธ์ œ๊ฐ€ ์žˆ์œผ๋‹ˆ, Node๋ฅผ ๋‹ค์šด๊ทธ๋ ˆ์ด๋“œํ•˜๋ผ๊ณ  ํ•ฉ๋‹ˆ๋‹ค. ์ด์Šˆ๊ฐ€ ๋“ฑ๋ก๋œ ์‹œ์ ์œผ๋กœ ๋ถ€ํ„ฐ 1๋‹ฌ ๋„˜๊ฒŒ ์ง€๋‚ฌ์œผ๋‹ˆ, ์ฐจ๋ผ๋ฆฌ nuxt๋ฅผ ์—…๊ทธ๋ ˆ์ด๋“œํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

๊ฒŒ์‹œ๊ธ€ ์ž‘์„ฑ์‹œ์  ๊ธฐ์ค€ ๊ณต์‹ ํ™ˆํŽ˜์ด์ง€์— 3.4 ๋ฒ„์ „์ด ๋‚˜์™”๋‹ค๋Š” ์†Œ์‹์ด ์žˆ๋„ค์š”.

  1. nuxt CLI๋ฅผ ์ง€์›ํ•˜๋Š” nuxi ์„ค์น˜
yarn add -D nuxi
  1. nuxt ์—…๊ทธ๋ ˆ์ด๋“œ
yarn nuxi upgrade --force

Nuxt v3.4.0์„ ์‚ฌ์šฉํ•˜๋‹ˆ, Node v19.9.0์—์„œ๋„ ์ž˜ ๋™์ž‘ํ•ฉ๋‹ˆ๋‹ค ๐ŸŽ‰