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

185
Views
Is svelte docs about writable stores wrong or is it VSCode?

If I do exactly as the docs for Svelte regarding writable stores https://svelte.dev/tutorial/writable-stores I get a warning in VSCode:

Module '"./stores.js"' has no exported member 'count'.

It returns an object not a variable.

This is my code:

//stores.js
import { writable } from 'svelte/store';
export const count = writable(0);

//index.svelte
<script>
  import { count } from './stores.js';
  console.log(count);
</script>

enter image description here

Why is that? Is the docs or VSCode wrong?

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!