Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

135
Vistas
Vue.js not being recognised with CDN

Hi I am currently learning Vue.js and I have an issue with it, I am calling Vue using a CDN.

I have followed instructions but it does not seem to be recognising that Vue exists.

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Vue Basics</title>
  <link
    href="https://fonts.googleapis.com/css2?family=Jost:wght@400;700&display=swap"
    rel="stylesheet"
  />
  <link rel="stylesheet" href="styles.css" />
  <script src="https://unpkg.com/vue@3"></script>

  <script src="app.js" defer></script>
</head>
<body>
  <header>
    <h1>Vue Course Goals</h1>
  </header>
  <section id="user-goal">
    <h2>My Course Goal</h2>
    <p>{{coarseGoal}}</p>
  </section>
</body>
</html>

This is the simple js file It does not output the code from the Vue object.

Would really appreciate any help on this.

const app = vue.createApp({
  data () {
    return {
      coarseGoal: 'This is the best',
    };
  }
});
app.mount('#user-goal');
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

It should be Vue.createApp instead of vue.createApp.

Working Fiddle

const app = Vue.createApp({
  data() {
    return {
      coarseGoal: 'This is the best',

    };
  }
});
app.mount('#user-goal');
<title>Vue Basics</title>
<link href="https://fonts.googleapis.com/css2?family=Jost:wght@400;700&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="styles.css" />
<script src="https://unpkg.com/vue@3"></script>
<body>
  <header>
    <h1>Vue Course Goals</h1>
  </header>
  <section id="user-goal">
    <h2>My Course Goal</h2>
    <p>{{coarseGoal}}</p>
  </section>
</body>

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda