I have a very basic project based on the sapper template with an unchanged client.js and server.js. Only modified rollup.config.js to include SCSS support using svelte-preprocess.
I have noticed that when I run npm run dev I often get the attached error on reloads. It's more frequent when the reload is triggered by saving changes on vsc, but not nearly as much when refreshing the page on the browser.
I can reproduce it consistently by either doing a browser hard reload or commenting out target: document.querySelector('#sapper') in client.js.
Any idea what could be causing this?
Edit: my mistake, I had a line in svelte:head I forgot to remove
I have a very basic project based on the sapper template with an unchanged client.js and server.js. Only modified rollup.config.js to include SCSS support using svelte-preprocess.
I have noticed that when I run
npm run dev
I often get the attached error on reloads. It's more frequent when the reload is triggered by saving changes on vsc, but not nearly as much when refreshing the page on the browser.I can reproduce it consistently by either doing a browser hard reload or commenting out
target: document.querySelector('#sapper')
in client.js.Any idea what could be causing this?
Edit: my mistake, I had a line in svelte:head I forgot to remove