Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

373
Views
Vue 3: Module not found: Error: path argument is not string

I am having vue application inside static JS app and in vuejs's main.js file I am having 3 lines of code:

import { createApp } from 'vue'
import componentMap from './componentMap'
createApp(componentMap['vue-home-page']).mount("#vueContainer")

App.vue:

<template>
  <h1> VUE Starter Kit </h1>
</template>

<script>
export default {
  name: 'App'
}
</script>

and I am getting error on second line i.e. import App from './App.vue' where it says Module not found: Error: path argument is not a string

componentMap.js:

import App from '.App.vue';
const componentMap = {'vue-home-page': App}
export default componentMap

vue-page.hbs:

<div id='vueContainer'><vue-home-page /></div>

Project Structure:

src
    hbs-app
        page
            index.hbs
            landing-page.hbs
            vue-page.hbs                
    vue-app
        main.js
        App.vue
        componentMap.js
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!