Reputation: 648
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
Upvotes: 0
Views: 406
Reputation: 11
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
Upvotes: 1