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

185
Views
Vue component registration

I have imported the component in the js file

import fmsSubUnitDetails from '../subunitDetails';

export default{
 components: {
    fmsSubUnitDetails
  },
}

in the index.vue file

<fmsSubUnitDetails></fmsSubUnitDetails>

but still getting error

[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.

I have tried changing path like adding or removing '/' in the import, it renders the component but as soon as I hard refresh, the component stops rendering again.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Is it a recursive component? If so, I think you need to use the same name you defined on the component (or the kebab version of it)

export default { 
    name: 'SubUnitDetails', 
    data() { 
        return { properties };
    }
}

import SubUnitDetails from '../subunitDetails';

export default {
    components: { SubUnitDetails },
}

<SubUnitDetails></SubUnitDetails >

about 4 years ago · Juan Pablo Isaza Report
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!