Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.

Getting started tutorial: Live reload not working #303

Closed
dok42 opened this issue Feb 24, 2021 · 3 comments
Closed

Getting started tutorial: Live reload not working #303

dok42 opened this issue Feb 24, 2021 · 3 comments

Comments

@dok42
Copy link

dok42 commented Feb 24, 2021

Hello everyone,
I would really like to learn Svelte/Sapper (while waiting for svelte-kit) development but I have this issue actually.
Started the https://sapper.svelte.dev/docs#Getting_started
Done this

npx degit "sveltejs/sapper-template#rollup" my-app
# or: npx degit "sveltejs/sapper-template#webpack" my-app
cd my-app
npm install
npm run dev

Here's the output:

❯ npm run dev

> TODO@0.0.1 dev
> sapper dev

✔ server (1.6s)
✔ client (2.1s)
✔ service worker (190ms)
> Listening on http://localhost:3000

Live reloading is not working.

I have searched for existing issues here before posting, but I have not found solutions to the problem.
Could you please provide any help ?
Thanks

ps: I'm on Windows 10, and I'm using Ubuntu 20.04 on WSL 2 with no issues so far, except this :)

@Conduitry
Copy link
Member

If your project lives on your Windows filesystem, WSL fails to report the file change events that Node is listening for. This is a known bug/limitation in WSL 2. If your project lives in the virtual Linux filesystem, the file watching should work fine.

@Conduitry
Copy link
Member

See also sveltejs/sapper#1150

@dok42
Copy link
Author

dok42 commented Feb 24, 2021

Oh, sorry didn't know about that limitation. My bad.

Thank you very much, will try to move the project directory, or try to avoid wsl if possible.
Thanks ☺️

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants