1

I am switching to HARP engine in the Nuxt 3 project. I use the latest version of HERE maps API for Javascript (1.61.2). Also, I defined Nuxt Plugin of Here Maps based:

export default defineNuxtPlugin( () => {
    return {
      provide: {
        H: HereMap,
      }
    }
  })

and added it to my config file.

During initizalization of Here Map in my .vue file, following the documenatation I use the EngineType HARP:


 let maptypes = platform.value.createDefaultLayers({
   lg: getLocaleLanguage(props.locale),
   lg2: "en",
   engineType,
 });

But I keep getting the

InvalidArgumentError: H.service.Platform#Xl (Argument #0 HARP engine is not supported, module not found)

Shouldn't be the HARP engine already available in my plugin?

3
  • What is the HARP engine? Got some link? Commented Feb 3, 2025 at 12:06
  • 1
    here.com/docs/bundle/maps-api-for-javascript-migration-guide/… Commented Feb 3, 2025 at 12:20
  • I have the same issue and I cannot resolve it. Did you resolve it somehow? Commented Feb 15, 2025 at 10:12

1 Answer 1

2

The key is to change the import in your .ts file to:

import H from '@here/maps-api-for-javascript/bin/mapsjs.bundle.harp.js';

before it was:

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

as described here in React section: https://www.here.com/docs/bundle/maps-api-for-javascript-migration-guide/page/README.html

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.