@here/maps-api-for-javascript has no exported member H

241 Views Asked by At

I am following the Heremap tutorial present at https://developer.here.com/documentation/maps/3.1.30.15/dev_guide/topics/angular-practices.html.

I copy pasted the code mentioned in it in my angular component. But the compiler complains that

@here/maps-api-for-javascript has no exported member H.

Anybody from Heremap developer community please help fix this.

Thanks, Nealesh

1

There are 1 best solutions below

0
On

At Step 7 of Here Maps Angular Doc :

In the tsconfig.json file, add the following setting under angularCompilerOptions: "allowSyntheticDefaultImports": true

And use this import import H from '@here/maps-api-for-javascript';

Best regards