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

201
Views
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 answers
Answer question

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 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!