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

[BUGFIX] eslint error 수정 #143

Merged
merged 3 commits into from
Sep 17, 2024
Merged

[BUGFIX] eslint error 수정 #143

merged 3 commits into from
Sep 17, 2024

Conversation

keemsebin
Copy link
Collaborator

@keemsebin keemsebin commented Sep 16, 2024

관련 이슈

close #142

✨ 작업 내용

계속해서 eslint 설정이 되지 않아서 여러 방법 시도 끝에 성공했습니다. ✌️
(혹시나 pull 받으시고 에러날까봐, 티켓 따로 만들었습니다!)

해결 순서는 다음과 같습니다.

1.yarn cache clean
2. yarn install
3. yarn dlx @yarnpkg/sdks vscode
4. TypeScript Version 선택
shift+command+ p > Select TypeScript Version > Use WorkSpace Version
image

설명

  1. 캐시 삭제 및 재설치
    캐시를 삭제하고 yarn을 다시 설치했습니다.

  2. yarn dlx @yarnpkg/sdks vscode
    yarn berry의 PnP 기능을 사용할 때에는 TypeScript, Eslint, Prettier가 정상적으로 작동하도록 추가적인 구성이 필요하다고 해요! vs가 패키지를 yarn berry로 불러와야 한다는 사실을 알 수 있게 별도의 설정을 해줘야 하는데, 요 설정을 해주는 yarn berry 전용 vs Code SDK라고 합니당.

그 후 vs 설정에서 ts를 현재 프로젝트 버전으로 맞춰줬더니 eslint 이제 잘 작동합니다!

🙏 기타 참고 사항

역시나 저만 나는 에러는 아니였어요. 😢
yarnpkg/berry#6219

Copy link
Member

@jhsung23 jhsung23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨어용👍

package.json Outdated Show resolved Hide resolved
@keemsebin keemsebin merged commit cb165f7 into main Sep 17, 2024
1 check passed
@keemsebin keemsebin deleted the fix/#142-eslint branch September 17, 2024 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FIX] eslint error 해결
2 participants