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

Cannot find type definition file for 'heremaps' #109

Closed
raykin opened this issue Sep 23, 2021 · 1 comment
Closed

Cannot find type definition file for 'heremaps' #109

raykin opened this issue Sep 23, 2021 · 1 comment

Comments

@raykin
Copy link

raykin commented Sep 23, 2021

I can install geocoder in my Angular project but can't launch the project after installation.
The error is

[ng] Error: node_modules/@goparrot/geocoder/types/provider/here/interface/here.type.d.ts:1:23 - error TS2688: Cannot find type definition file for 'heremaps'.
[ng] 1 /// <reference types="heremaps" />
[ng]                         ~~~~~~~~
[ng] Error: node_modules/@goparrot/geocoder/types/provider/here/interface/here.type.d.ts:2:40 - error TS2503: Cannot find namespace 'H'.
[ng] 2 export declare type HereResponseType = H.service.ServiceResult;
[ng]                                          ~
[ng] Error: node_modules/@goparrot/geocoder/types/provider/here/interface/here.type.d.ts:3:50 - error TS2503: Cannot find namespace 'H'.
[ng] 3 export declare type HereOneResultType = Required<H.service.ServiceResult>['Response']['View'][0]['Result'][0];

It's weird here.type.d.ts on my local is different from source code. It prepend a new line.

/// <reference types="heremaps" />
export declare type HereResponseType = H.service.ServiceResult;
export declare type HereOneResultType = Required<H.service.ServiceResult>['Response']['View'][0]['Result'][0];
export declare type HereOneResultAddressType = Partial<HereOneResultType['Location']['Address']>;
export declare type HereOneResultAddressAdditionalDataType = Required<HereOneResultAddressType>['AdditionalData'][0];

Btw I only use GoogleMap, so it seems weird it loads heremaps.
I use geocoder 4.2.0 and Angular12.
Thanks for reading.

@ruscon
Copy link
Contributor

ruscon commented Oct 15, 2021

@raykin thx, fixed in the v4.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants