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

114
Views
Vue component not registering

I am using Vue.JS in a project where I am trying to load a custom component tag.

We have used Vue.JS in other projects before so I basically copy pasted it into a new project though it is not working, so I assume that I missed something...

My browser console returns this error: console error image

The code below is from my app.js

import Vue from 'vue';
import Insights from './components/insight-list.vue';
Vue.config.productionTip = false;

new Vue({
  el: '#roots',

  components: {
    Insights
  }
});

And this code is from my vue component (insight-list.vue)

<template>
    <div class="insight-list">

      <h1>Hello world</h1>

    </div>
</template>

<script>

    export default {
        name: 'insight-list',

        props: [
        ],

        computed: {
        },

        methods: {
        },

        components: {
        }
    }
</script>

So here remains my question, what did I do wrong / what didn't I do yet?

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I think you should try

new Vue({
  el: '#roots',

  components: {
    'insight-list': Insights
  }
});

source: https://vuejs.org/v2/guide/components-registration.html

"For each property in the components object, the key will be the name of the custom element, while the value will contain the options object for the component."

about 4 years ago · Santiago Trujillo 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!