본문 바로가기

Computer Science/[dev]web

vercel 통해 배포해보기

728x90

1

next 14.0.3 인데 걍 npm 쓰자

debi@debiui-MacBookAir  ~/Repositories/weef-landing/weef  ↱ main  yarn add react-faq-component
yarn add v1.22.19
warning ../../package.json: No license field
info No lockfile found.
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] 🔍  Resolving packages...
error Couldn't find package "@next/swc-linux-x64-gnu@14.0.3" required by "next@14.0.3" on the "npm" registry.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

 

 

2

https://nextjs.org/docs/pages/api-reference/next-config-js/distDir

 

next.config.js Options: distDir | Next.js

Set a custom build directory to use instead of the default .next directory.

nextjs.org

 

 

3. (중요) tsconfig.json 있는데 @type/node 없다고 안됐음 --> 

근데나는 타입스크립트 없이 씀

728x90