Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andrewdc/7a2d0b4d3716fc0994ad6b62365b8e4a to your computer and use it in GitHub Desktop.
Save andrewdc/7a2d0b4d3716fc0994ad6b62365b8e4a to your computer and use it in GitHub Desktop.
fixes Sapper Client connect(port) failure
https://github.com/sveltejs/sapper/issues/1151#issuecomment-612815571
As mentioned above, going to node_modules/sapper/sapper-dev-client.js and changing
export function connect(port) {
if (source || !window.EventSource) return;
To
module.exports.connect = function connect(port) {
if (source || !window.EventSource) return;
Fixes the issue locally, live reload is working after that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment