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

카카오 맵 api parse blocking 경고 해결 및 global define 변경 #359

Merged
merged 2 commits into from
Nov 27, 2023

Conversation

1g2g
Copy link
Member

@1g2g 1g2g commented Nov 27, 2023

⚙️ PR 타입

  • Feature
  • Hotfix

✨ 기능 설명 or 🚨 문제 상황

1. 카카오 맵 api parse blocking 경고

cdn이 로드 되기 전에 지도 객체에 접근하여 아래와 같은 경고가 발생했습니다.

image

autoload=false속성을 추가하여 cdn이 모두 로드된 후에 지도를 그리도록 설정해주었습니다.

2. socketjs-client global define

socketjs-client에서 globalundefined여서 아래와 같은 문제가 발생했습니다.

image

vite.config에서 global을 정의해 문제를 해결했습니다.
(이전에는 임시로 index.html에서 var global=window로 정의했었습니다.)

👨‍💻 구현 내용 or 👍 해결 내용

chore: kakao map cdn에 autoload 속성 추가

chore: vite config에서 global 정의

🎯 PR 포인트

📝 참고 사항

참고자료 카카오 지도 load

❓ 궁금한 점

@1g2g 1g2g added the 기타 기타 관련사항입니다. label Nov 27, 2023
@1g2g 1g2g added this to the 6차 스프린트 milestone Nov 27, 2023
@1g2g 1g2g self-assigned this Nov 27, 2023
@1g2g 1g2g linked an issue Nov 27, 2023 that may be closed by this pull request
@dlwl98
Copy link
Member

dlwl98 commented Nov 27, 2023

🎉 @imb96 님 랜덤 리뷰어로 당첨되셨습니다! 리뷰를 부탁드립니다. 🙏

@dlwl98 dlwl98 requested a review from imb96 November 27, 2023 14:22
@1g2g 1g2g merged commit b76ae55 into dev Nov 27, 2023
1 check passed
@1g2g 1g2g deleted the chore/#350-kakao-map-api-parse-blocking branch November 27, 2023 16:58
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.

카카오 맵 api parse blocking 경고 해결 및 global define 변경
2 participants