-
-
Notifications
You must be signed in to change notification settings - Fork 432
Client side doesn't have hot reload #675
Comments
As noted in the comment, webpack HMR isn't working in Svelte v3 pending that issue and some hooks provided by the compiler to enable it. |
Ye I am saying that the JavaScript errors because hot is not defined. Are you saying it doesn't matter because there is no hot module reloading regardless? |
He's saying use rollup instead of webpack until they fix that bug sveltejs/svelte#2377 But I started my project with webpack so now I have to translate to rollup 😢 |
@jcollum you can just use webpack but disable hot-replacement feature in sapper. |
Getting rollup going wasn't any big deal. |
rollup has not hot-replace feature, it only has live-reload, so issue not raised in rollup like webpack |
Sapper currently doesn’t support HMR sveltejs/sapper#675
Sapper currently doesn’t support HMR sveltejs/sapper#675
Closing this since there is an active effort on Svelte to get HMR working which will solve this. |
let me know if this is the correct repo to post this or if i should move it to the template
https://github.com/sveltejs/sapper/blob/master/sapper-dev-client.js#L6
module.hot is undefined.
I think this is because of this
https://github.com/sveltejs/sapper-template/blob/79be87c3f5cb90ee1afb2561965597f9e4273d26/webpack.config.js#L25
The text was updated successfully, but these errors were encountered: