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

190
Views
vue - extra component not showing in the same file

I find that I cannot use more than one component in one vue file.

If I am using Codesandbox, everything works fine
https://codesandbox.io/s/keen-surf-3ww6o?file=/src/App.vue

When I inspect in Chrome, a strange comment is shown. enter image description here

App.vue

<template>
  <div id="app">
    <Step />
  </div>
</template>

<script>
import Vue from "vue";
const Step = Vue.component("step", {
  template: `<div>
    <h1>Hello world</h1>
  </div>`,
  props: {
    id: Number,
    description: String,
  },
});
export default {
  name: "App",
  components: {
    Step,
  },
};
</script>

<style>
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
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!