question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Next.js] TypeError: kakao.maps.LatLng is not a constructor

See original GitHub issue

Description

I am getting this issue after following the guide for Nextjs configuration

Versions

nextjs version: 12.2.0 react version: 18.2.0

Screenshot:

Screen Shot 2022-07-12 at 8 52 24 AM

Any hint on how to solve it?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
JaeSeoKimcommented, Aug 6, 2022

There seems to be an error with the kakao map api dynamic loading function added in the latest version. I will fix the problem soon and distribute the modified version.

1reaction
minimabotcommented, Jul 23, 2022

μš°μ„  @ziponia λ‹˜μ˜ μ§ˆλ¬Έμ— λŒ€ν•œ 닡변을 λ“œλ¦¬μžλ©΄

  1. μ»΄ν¬λ„ŒνŠΈκ°€ 마운트 된 ν›„ λ™μ μœΌλ‘œ κ°€μ Έμ˜€κΈ° μœ„ν•¨μΈκ±΄κ°€μš”? -> λ„€ λ§žμŠ΅λ‹ˆλ‹€. 카카였 지도λ₯Ό μ§μ ‘μ μœΌλ‘œ μ‚¬μš©ν•  λ•Œλ§Œ 슀크립트λ₯Ό κ°€μ Έμ˜€κΈ° μœ„ν•¨μž…λ‹ˆλ‹€.

  2. unmount μ‹œ ν•΄μ œλŠ” μ–΄λ–»κ²Œ ν•΄μ•Ό ν•˜λ‚˜μš”? -> scriptλ₯Ό μ œκ±°ν•˜λŠ” 방법을 λ§μ”€ν•˜μ‹œλŠ” 거라면 useEffect와 URL을 μ‚¬μš©ν•΄μ„œ μ œκ±°ν•  수 μžˆμ„ 것 κ°™μŠ΅λ‹ˆλ‹€. λ‹€λ§Œ νŠΉλ³„ν•œ μ΄μœ κ°€ μ—†λ‹€λ©΄ 이미 κ°€μ Έμ˜¨ scriptλ₯Ό μ œκ±°ν•  ν•„μš”λŠ” μ—†μ–΄λ³΄μž…λ‹ˆλ‹€.

그리고 μœ„μ—μ„œ μ œκ°€ μ˜ˆμ‹œλ‘œ μž‘μ„±ν•œ μ½”λ“œλ₯Ό κ·ΈλŒ€λ‘œ μ‹€ν–‰ν•  경우 μ»΄ν¬λ„ŒνŠΈκ°€ 졜초둜 μ‹€ν–‰λœ ν›„ λ‹€μ‹œ 싀행될 λ•Œ 지도가 ν‘œμ‹œλ˜μ§€ μ•ŠλŠ” μ΄μŠˆκ°€ μžˆμ–΄μ„œ μ•½κ°„ μˆ˜μ •ν•˜μ˜€μŠ΅λ‹ˆλ‹€.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: kakao.maps.LatLng is not a constructor 였λ₯˜μ— λŒ€ν•œ ...
TypeError : kakao.maps.LatLng is not a constructor ν•œ λ²ˆλ„ λœ¨μ§€ μ•ŠλŠ” μœ„μ˜ 였λ₯˜κ°€ λ°œμƒν•˜μ˜€μŠ΅λ‹ˆλ‹€. ν•΄κ²° 방법이 λ¬΄μ—‡μΌκΉŒμš”β€¦?γ… γ… .
Read more >
[kakao 지도 ] kakao.maps.LatLng is not a constructor - velog
window.kakao.maps.LatLng is not a constructor. v2 script load μ™„λ£Œ ν›„ 지도λ₯Ό κ·Έλ¦¬λŠ” λ©”μ„œλ“œλ₯Ό ν˜ΈμΆœν•˜λ©΄ μœ„ μ—λŸ¬κ°€ λ‚˜μ˜¨λ‹€.
Read more >
TypeError: google.maps.latLng is not a constructor [closed]
I'm am using Firefox to load my html file for GeoLocation. The problem is that I get these two messages in the console:...
Read more >
kakao-maps-sdk/kakao-maps-sdk.umd.min.js.map at master
Contribute to raccoondev85/kakao-maps-sdk development by creating an account on ... class LatLng {\n\n private object: any;\n constructor(latitude: number,Β ...
Read more >
Re: google.maps.LatLng is not a constructor ? - The Mail Archive
Tubby> Thanks...I know the rule, but I figured I was making a simple error that didn't require people to look through everything to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found