게시물 페이지 디자인 with Figma


yarn install을 하지 않아도 될 것만 같다. → 하지만 틀린 이야기이다..yarn/cache 디렉토리에 zip 파일 형태로 저장되는 것이 아니라 .yarn/unplugged 디렉토리에 별도의 바이너리 파일로 관리된다.npx create-next-app@latest
cd test-app
yarn set version stable
rm -rf node_modules
# yarnrc.yml 파일에 nodeLinker: pnp 추가
yarn install
# .gitignore 파일 생성
# 소스 파일 대부분에서 에러가 보일 시, 아래 명령어 수행 후 vscode 껐다 다시 실행
yarn dlx @yarnpkg/sdks vscode
# ctrl + shift + p
# Select TypeScript Version
# Use Workspace Version
#This workspace contains a TypeScript version. Would you like to use the workspace TypeScript version for TypeScript and JavaScript language features?
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

yarn dlx storybook@latest init 스크립트로 설치하고 yarn storybook으로 실행하면 Error: @storybook/nextjs tried to access webpack (a peer dependency) but it isn't provided by your application; this makes the require call ambiguous and unsound. 라는 에러 문구를 볼 수 있다.git rm --cached -r node_modules 를 통해 원격 저장소에 올라간 내역만 없앨 수 있다. —cached 옵션을 쓰지 않으면 로컬과 원격에 있는 파일이 모두 사라진다. 명령어를 사용하고 나서 commit, push 하면 원격에도 반영된다.