Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node 버전 20에서 next 패키지 사용 불가능 문제 해결 #606

Merged
merged 9 commits into from
Feb 4, 2024

Conversation

ddarkr
Copy link
Collaborator

@ddarkr ddarkr commented Feb 3, 2024

⛳️작업 내용

Note: 해당 PR에서 작업한 Yarn 4.1 업그레이드를 실시하면 Node 버전 18.12 이상을 사용해야 합니다! 현재 영감탱 일부 세팅이 Node 16으로 구성되어 있는데 머지되면 버전 20으로 올려볼까 합니당

Node v20 + Yarn 3.6 환경에서 next 관련 패키지를 실행하면 다음과 같은 오류를 뱉습니다.

TypeError: Cannot convert undefined or null to object
    at 9041 (W:\ygtang-client\.yarn\__virtual__\next-virtual-5b60b9cc2f\0\cache\next-npm-14.1.0-a62036d298-077fd76a6f.zip\node_modules\next\dist\compiled\conf\index.js:1:105383)

Node 20과 Yarn 3.6 환경이 호환되지 않아서 발생하는 문제로 추정되며, Yarn을 최신 버전(4.1)로 올렸더니 해결됐습니다.

📸스크린샷

⚡️사용 방법

📎레퍼런스

@ddarkr ddarkr added the fix 트러블 슈팅 및 디버깅 label Feb 3, 2024
@ddarkr ddarkr self-assigned this Feb 3, 2024
@hyesungoh
Copy link
Member

옷오 저는 18 버전으로 하고 있어서 몰랐네요 ㅋㅋㅋ 고생하셨습니다!!! 👍👍

Copy link

github-actions bot commented Feb 3, 2024

Bundle Sizes

Compared against none

Route Size (gzipped)
/ 106.29 KB
/_app 216.98 KB
/_error 77.85 KB
/add/image 98.85 KB
/add/link 101.33 KB
/add/share 78.09 KB
/add/tag 85.4 KB
/add/text 99.47 KB
/content 100.39 KB
/edit/tag 85.57 KB
/login 83.03 KB
/my 85.95 KB
/my/account 83.32 KB
/my/account/change-nickname 82.53 KB
/my/account/change-password 82.81 KB
/my/tag 89.83 KB
/my/tag/AddTagBottomSheet 85.02 KB
/onboard 81.55 KB
/password 82.77 KB
/password/sent-email 79.38 KB
/password/verified 78.69 KB
/privacy 77.69 KB
/signup 86.89 KB
/signup/email-verified 83.89 KB
/signup/information 84.03 KB
/signup/sent-email 81.11 KB
/tag 83.91 KB
Dynamic import Size (gzipped)
../../.yarn/cache/@tanstack-query-devtools-npm-5.18.1-9c6902de16-7514ad0eb5.zip/node_modules/@tanstack/query-devtools/build/index.js -> ./Devtools/IEC7B7YJ.js no change
../components/home/FilterBottomSheetModal/FilterBottomSheetModal.tsx -> ~/components/home/TagFormRouteAsModal 3.88 KB
../components/inspiration/ImageView.tsx -> ~/components/add/AddTagFormRouteAsModal 2.83 KB
../components/inspiration/LinkView.tsx -> ~/components/add/AddTagFormRouteAsModal 2.83 KB
../components/inspiration/TextView.tsx -> ~/components/add/AddTagFormRouteAsModal 2.83 KB
add/image.tsx -> ~/components/add/AddTagFormRouteAsModal 2.73 KB
add/link.tsx -> ~/components/add/AddTagFormRouteAsModal 2.64 KB
add/text.tsx -> ~/components/add/AddTagFormRouteAsModal 2.64 KB
content/index.tsx -> ~/components/common/IllustDialog 741 B
content/index.tsx -> ~/components/edit/EditTagFormRouteAsModal 2.9 KB
index.tsx -> ~/components/edit/EditTagFormRouteAsModal 5.01 KB
index.tsx -> ~/components/inspiration/InspirationViewAsModal 13.99 KB

Copy link

codecov bot commented Feb 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (043e31c) 15.23% compared to head (9f40251) 15.23%.

❗ Current head 9f40251 differs from pull request most recent head 156fe6f. Consider uploading reports for the commit 156fe6f to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #606   +/-   ##
========================================
  Coverage    15.23%   15.23%           
========================================
  Files          217      217           
  Lines         3289     3289           
  Branches       470      470           
========================================
  Hits           501      501           
  Misses        2671     2671           
  Partials       117      117           

Copy link

cloudflare-workers-and-pages bot commented Feb 3, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 156fe6f
Status: ✅  Deploy successful!
Preview URL: https://771d3ac2.ygt.pages.dev
Branch Preview URL: https://fix-node-20-issue.ygt.pages.dev

View logs

@ddarkr ddarkr merged commit db700be into develop Feb 4, 2024
5 of 8 checks passed
@ddarkr ddarkr deleted the fix/node-20-issue branch February 4, 2024 02:04
@sensecodevalue
Copy link
Collaborator

좋습니다!! 수고하셨습니다!

hyesungoh added a commit that referenced this pull request Feb 11, 2024
* fix: 안드로이드 다음페이지 트리거 이슈 (#552)

* fix: add thumbnail list bottom padding for trigger space in andriod chrome

* fix: remove not needed style

* feat: 회원가입 시 연령 선택 제거 (#556)

* chore: update version

* 유틸 테스트 추가 (#558)

* test: select random colors util

* test: event util

* test: validator util

* chore: rename test file

* 저장 시 포매팅 적용 (#560)

* loading handler 테스트 (#559)

* test: index

* chore: rename describe

* test: loading handler

* 페이지뷰 이벤트에 버전 기록 (#564)

* 믹스패널 유저 identify 호출 (#565)

* refactor: mixpanel type 설정 및 identify 유틸 생성

* chore: 불필요 주석 삭제

* chore: 불필요 주석 삭제

* feat: 로그인 시 mixpanel identify 설정

* test: mixpanel 유틸

* chore: test define 에러 수정 및 버전 업데이트

* chore(deps): bump http-cache-semantics in /mock-server (#566)

Bumps [http-cache-semantics](https://github.com/kornelski/http-cache-semantics) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/kornelski/http-cache-semantics/releases)
- [Commits](kornelski/http-cache-semantics@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: http-cache-semantics
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* sitemap, robots 추가 (#573)

* feat: next sitemap, next env 설치 및 postbuild 스크립트 추가

* feat: next sitemap 설정 파일

* chore: sitemap, robots

* SEO 컴포넌트 개발 및 적용 (#569)

* chore: yarn version up

* feat: seo 컴포넌트

* chore: eslint setting 및 rule 추가

* feat: og image 업로드

* test: seo 컴포넌트

* feat: 로그인 필요없는 페이지 seo 컴포넌트 적용

* docs: readme 수정 (#572)

* svg, img vertical-align 추가 (#579)

* fix: svg와 img에 vertical-align: top 을 추가하여 정렬을 맞춥니다.

* fix: 글로벌 스타일 작성이 아닌, reset 스타일 작성

* chore: append emotion css at reset style

---------

Co-authored-by: Hyesung Oh <[email protected]>

* 이메일 Input select box 추가 (#575)

* feat: add button type in dropdown when used in form error

* feat: add EmailFeild compoent

* refactor: remove not used css

* 태그 추가 개선 (#578)

* feat: change tag component design

* feat: add TagSearchBar

* feat: change typo 추가 to 완료

* refactor: use useInternalRouter

* feat: add margin in TagSearchBar

* chore: version update

* docs: contributing (#583)

* chore(deps): bump semver from 5.7.1 to 5.7.2 (#586)

Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
- [Commits](npm/node-semver@v5.7.1...v5.7.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump semver from 6.3.0 to 6.3.1 in /mock-server (#587)

Bumps [semver](https://github.com/npm/node-semver) from 6.3.0 to 6.3.1.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v6.3.1/CHANGELOG.md)
- [Commits](npm/node-semver@v6.3.0...v6.3.1)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: hyesungoh <[email protected]>

* chore(deps): bump word-wrap from 1.2.3 to 1.2.4

Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](jonschlinkert/word-wrap@1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* feat: add tag count at Tag in RegisteredTagList

* feat: add default image in LinkContent

* yarn cache 초기화 (#591)

* fix: 태그 추가 시 mutation 타입 맞추기 (#593)

* docs: 수상 텍스트 추가 (#592)

* chore(deps): bump @adobe/css-tools from 4.2.0 to 4.3.1 (#594)

Bumps [@adobe/css-tools](https://github.com/adobe/css-tools) from 4.2.0 to 4.3.1.
- [Changelog](https://github.com/adobe/css-tools/blob/main/History.md)
- [Commits](https://github.com/adobe/css-tools/commits)

---
updated-dependencies:
- dependency-name: "@adobe/css-tools"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump @babel/traverse from 7.21.3 to 7.23.2 (#595)

Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.21.3 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump @sentry/nextjs from 7.44.2 to 7.77.0 (#596)

Bumps [@sentry/nextjs](https://github.com/getsentry/sentry-javascript) from 7.44.2 to 7.77.0.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md)
- [Commits](getsentry/sentry-javascript@7.44.2...7.77.0)

---
updated-dependencies:
- dependency-name: "@sentry/nextjs"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump axios from 1.3.4 to 1.6.0 (#597)

Bumps [axios](https://github.com/axios/axios) from 1.3.4 to 1.6.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](axios/axios@v1.3.4...v1.6.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump @adobe/css-tools from 4.3.1 to 4.3.2 (#598)

Bumps [@adobe/css-tools](https://github.com/adobe/css-tools) from 4.3.1 to 4.3.2.
- [Changelog](https://github.com/adobe/css-tools/blob/main/History.md)
- [Commits](https://github.com/adobe/css-tools/commits)

---
updated-dependencies:
- dependency-name: "@adobe/css-tools"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump next from 13.2.4 to 13.5.1 (#599)

Bumps [next](https://github.com/vercel/next.js) from 13.2.4 to 13.5.1.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](vercel/next.js@v13.2.4...v13.5.1)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* hotfix: 사용자의 노고 달래기

* chore: vscode dlx

* feature: 로그인 이슈 텍스트 삭제

* 닉네임 변경 3자 이상으로 바꾸기 (#603)

* chore: vscode update

* feature: 닉네임 제한 변경

* Node 버전 20에서 next 패키지 사용 불가능 문제 해결 (#606)

* ci: update action to latest (#607)

* 영감 보기 애니메이션 변경 & 닉네임 변경 제한 2글자로 변경 (#610)

* chore: install deps

* style: 애니메이션 변경

* feature: 닉네임 2글자로 변경

* chore: lint

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: 정대윤 <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: 김민수 <[email protected]>
Co-authored-by: hyesungoh <[email protected]>
Co-authored-by: 정대윤 <[email protected]>
Co-authored-by: 도다 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix 트러블 슈팅 및 디버깅
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants