Angular-google-maps: node_modules/@agm/core/lib/services/google-maps-api-wrapper.d.ts:51:41 였λ₯˜ - 였λ₯˜ TS2314: 일반 μœ ν˜• 'MapHandlerMap<t>'μ—λŠ” 1개의 μœ ν˜• μΈμˆ˜κ°€ ν•„μš”ν•©λ‹ˆλ‹€.</t>

에 λ§Œλ“  2020λ…„ 10μ›” 06일  Β·  18μ½”λ©˜νŠΈ  Β·  좜처: SebastianM/angular-google-maps

ng build λ˜λŠ” ng serveλ₯Ό μ‹€ν–‰ν•  λ•Œ ν„°λ―Έλ„μ—μ„œ 였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€.

ERROR in node_modules/@agm/core/lib/services/google-maps-api-wrapper.d.ts:51:41 - error TS2314: Generic type 'MapHandlerMap<T>' requires 1 type argument(s).

51     subscribeToMapEvent<N extends keyof google.maps.MapHandlerMap>(eventName: N): Observable<google.maps.MapHandlerMap[N]>;
                                           ~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@agm/core/lib/services/google-maps-api-wrapper.d.ts:51:94 - error TS2314: Generic type 'MapHandlerMap<T>' requires 1 type argument(s).

51     subscribeToMapEvent<N extends keyof google.maps.MapHandlerMap>(eventName: N): Observable<google.maps.MapHandlerMap[N]>;

κ°€μž₯ μœ μš©ν•œ λŒ“κΈ€

@type/googlemaps(npm i @types/[email protected])의 v3.39.13으둜 λ‘€λ°±ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

λͺ¨λ“  18 λŒ“κΈ€

λ™μΌν•œ 였λ₯˜, Angular V9, μƒˆλ‘œ μ„€μΉ˜

μ•ˆλ…•ν•˜μ„Έμš”,

κ·€ν•˜μ˜ AGM 버전은 λ¬΄μ—‡μž…λ‹ˆκΉŒ?

방금 λ‹€μš΄λ‘œλ“œ, package.jsonμ—μ„œ @ agm /[email protected]

Da: 피에λ₯΄ μŠˆνƒ€μ΄λ‹ˆμ— μ•Œλ¦Ό @github.com

μ•ˆλ…•ν•˜μ„Έμš”,

κ·€ν•˜μ˜ AGM 버전은 λ¬΄μ—‡μž…λ‹ˆκΉŒ?

예, @types/googlemapsλ₯Ό μ—…λ°μ΄νŠΈν•œ μ΄ν›„λ‘œ λ™μΌν•œ 였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€...

@type/googlemaps(npm i @types/[email protected])의 v3.39.13으둜 λ‘€λ°±ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

예, @types/ [email protected] 을 μ„€μΉ˜ν•˜λ©΄ λ¬Έμ œκ°€ ν•΄κ²°λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

κ°μ‚¬ν•©λ‹ˆλ‹€

λ‚˜λ₯Ό μœ„ν•΄ μ—…λ°μ΄νŠΈλ₯Ό 받은 것은 @googlemaps/markerclustererplus 이기도 ν–ˆμŠ΅λ‹ˆλ‹€.

예, μ—¬κΈ°μ—μ„œ λ™μΌν•œ λ¬Έμ œκ°€ λ°œμƒν•©λ‹ˆλ‹€. @type/googlemaps 둀백으둜 이 λ¬Έμ œκ°€ ν•΄κ²°λœ 것 κ°™μŠ΅λ‹ˆλ‹€.

@type/googlemaps(npm i @types/[email protected])의 v3.39.13으둜 λ‘€λ°±ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

ng build λ˜λŠ” ng serveλ₯Ό μ‹€ν–‰ν•  λ•Œ ν„°λ―Έλ„μ—μ„œ 였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€.

ERROR in node_modules/@agm/core/lib/services/google-maps-api-wrapper.d.ts:51:41 - error TS2314: Generic type 'MapHandlerMap<T>' requires 1 type argument(s).

51     subscribeToMapEvent<N extends keyof google.maps.MapHandlerMap>(eventName: N): Observable<google.maps.MapHandlerMap[N]>;
                                           ~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@agm/core/lib/services/google-maps-api-wrapper.d.ts:51:94 - error TS2314: Generic type 'MapHandlerMap<T>' requires 1 type argument(s).

51     subscribeToMapEvent<N extends keyof google.maps.MapHandlerMap>(eventName: N): Observable<google.maps.MapHandlerMap[N]>;

μ„€μΉ˜ν•˜λ‹€

npm install @types/ [email protected] --save-dev

이 μœ ν˜•μ„ @types/googlemaps 의 μ΅œμ‹  λ²„μ „μœΌλ‘œ μ—…λ°μ΄νŠΈν•  κ³„νšμ΄ μžˆμŠ΅λ‹ˆκΉŒ?

였λ₯˜: node_modules/@agm/core/lib/services/google-maps-api-wrapper.d.ts:51:41 - 였λ₯˜ TS2314: 일반 μœ ν˜• 'MapHandlerMap'μ—λŠ” 1개의 μœ ν˜• μΈμˆ˜κ°€ ν•„μš”ν•©λ‹ˆλ‹€.

51ν™”(eventName: N): κ΄€μ°° κ°€λŠ₯ ~ ~ ~ ~ _

@type/googlemaps(npm i @types/[email protected])의 v3.39.13으둜 λ‘€λ°±ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

맀우 κ°μ‚¬ν•©λ‹ˆλ‹€. 그것은 λ‚˜λ₯Ό μœ„ν•΄ μΌν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€.<3

@guri1497 저도 잘 ν•΄κ²°ν–ˆμŠ΅λ‹ˆλ‹€πŸ˜Š

λ‚˜λŠ” 같은 λ¬Έμ œκ°€ μžˆμ§€λ§Œ μ΄μƒν•œ λ¬Έμ œκ°€ μžˆμŠ΅λ‹ˆλ‹€. ng build --prodλ₯Ό μ‚¬μš©ν•˜λ©΄ 정상 λΉŒλ“œκ°€ μ œλŒ€λ‘œ μž‘λ™ν•˜μ§€λ§Œ Docker 이미지λ₯Ό λΉŒλ“œν•  λ•Œ 이 λ¬Έμ œκ°€ λ°œμƒν•©λ‹ˆλ‹€!

BTW:

"@types/googlemaps": "3.39.12",
"@agm/core": "^3.0.0-beta.0",
"@angular/core": "~10.1.1",

λΉ„μŠ·ν•œ 행동이 μžˆμŠ΅λ‹ˆκΉŒ?

@hamzahsn "@types/googlemaps": "3.39.12"λ₯Ό "@types/ [email protected] "으둜 λ³€κ²½ν•΄μ•Ό ν•©λ‹ˆλ‹€.

@EfratIfergan μ‹€μ œλ‘œ λ‘˜ λ‹€ μ‹œλ„ν–ˆμ§€λ§Œ μž‘λ™ν•˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€.

@type/googlemaps(npm i @types/[email protected])의 v3.39.13으둜 λ‘€λ°±ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

이것은 λ‚˜λ₯Ό μœ„ν•΄ μΌν–ˆμŠ΅λ‹ˆλ‹€

이 νŽ˜μ΄μ§€κ°€ 도움이 λ˜μ—ˆλ‚˜μš”?
0 / 5 - 0 λ“±κΈ‰