-
-
Notifications
You must be signed in to change notification settings - Fork 428
(Rollup v3) preload
not getting called consistently on server, but always runs on client
#594
Comments
preload
not getting called inconsistently on server, but always runs on clientpreload
not getting called consistently on server, but always runs on client
Is this with svelte.v3 & sapper alpha? I seem to be having the same issues there at least. although it is very consistently not being called on the server. Put a sample video online. |
@neoel are you using CSS preprocessors anywhere? |
@arxpoetica Yeah, I am using svelte-preprocess. For loading scss styles. I've tried only passing the styles prop in the preprocess object . // svelte opts:
{
...
preprocess: { style: preprocess().style }
} But that didn't seem to influence it. |
Ah, I've now completely removed it. And it does not trigger the bug. So svelte-preprocess has something to do with it then, any clue what changes cause this. (I'm not familiar with the innards here) |
I created a repro: https://github.com/arxpoetica/gah |
Quick summary of findings: The A possible solution (which would only work with |
PR #597 |
Closing this - should be fixed in alpha 12. 🤞 |
preload still doesn't get called |
@YamiteruXYZ can you confirm Sapper and Svelte versions? |
Update it's consistent, and it has to do w/ style preprocessing.
Unfortunately, I've had a very difficult time pinning this down, but it appears that preload sometimes doesn't get called on the server. It's totally inconsistent, and I can't reproduce it on anything reliable, but it seems to be happening when I switch to different pages with different preloads (and refreshing).
Navigating to new pages that are not server hits (but client only) is just fine and works great. It's the server that sometimes doesn't call
preload
.Sorry this is less helpful. I feel pretty blind as to what the problem is. It'll start working and I'll have no clue, and then the next moment it won't.
Potentially related bugs: #554, #415, #589, #586, #588, #587, and #555.
The text was updated successfully, but these errors were encountered: