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

197
Vistas
Simple Svelte code works in REPL but not in VSCode

I'm learning Svelte and the code is as simple as the following, it works on Svelte REPL but in VSCode (localhost server) the h2 tag doesn't get updated as the input value changes.

<script>
    let val = '';
</script>

<svelte:head>
    <title>About page</title>
</svelte:head>

<div>
    <h1>About</h1>
    <input type="text" bind:value={val} />
    <h2>value is: {val}</h2>
</div>

in VSCode the code doesn't work

Svelte REPL works

I'm confused, what would be the problem? should I change a settings in Svelte config files?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

That could happen if hydration is turned off:

Look for: export const hydrate = false; in the routes/*.svelte file or check if hydrate is turned off in the svelte.config.js

Another option could be that an exception in another file caused the svelte scheduler to hang, check your console for errors.

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