Skip to content
This repository has been archived by the owner on May 8, 2021. It is now read-only.

Hot reload doesn't work in Sapper #32

Open
jakobrosenberg opened this issue Aug 13, 2019 · 5 comments
Open

Hot reload doesn't work in Sapper #32

jakobrosenberg opened this issue Aug 13, 2019 · 5 comments

Comments

@jakobrosenberg
Copy link

Making changes in tailwind.css correctly updates the index.css file, but you have to refresh the browser to see the effect. Is this by design or a bug?

@brasilikum
Copy link

I cannot confirm this. It works fine for me. Have you checked a different browser? Are you running dev at the same time as watch:tailwind?

@benwinding
Copy link

I'm also getting this issue. When a file is modified in the sapper template, the following error occurs on the browser:

Uncaught TypeError: Cannot read property 'status' of undefined
    at check (sapper-dev-client.js:6)
    at EventSource.source.onmessage (sapper-dev-client.js:37)

Which points to the following line, in the sapper repository:

https://github.com/sveltejs/sapper/blob/e51c733e3f8dbd7f5d92cdaf7666df85f6c7e404/sapper-dev-client.js#L6

@brasilikum Any chance you could share the exact pacakage.json versions that work for you?

@benwinding
Copy link

Related to: sveltejs/sapper#764

Seems to be fixed by changing the dev script in package.json from sapper dev to this sapper dev --no-hot:

...
  "scripts": {
    "dev": "sapper dev --no-hot",

Still live reloads too...

@quantuminformation
Copy link

Is this resolved?

@brasilikum
Copy link

Is this resolved?

sveltejs/sapper#764 -> no

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

4 participants