Closed rallisf1 closed 1 year ago
Glad you caught this. I faced the same thing before but didn't look deeper into it; turns out it was caused by a recent update that sped up compilation by compiling all the components at the same time instead of independently, but since it automatically nests the components in wrapper divs, <svelte window:
was causing a silent compilation error.
Fixed by extracting <svelte:window
and moving it outside the wrapper divs; will need to do the same thing for other svelte tags that can't be nested at some point.
Here's the change https://github.com/primodotso/primo-server/commit/2553329da179108850c4b07e2e8bddce891e0639
Go ahead and update server & lemme know if that does it.
I am using
<svelte:window bind:innerWidth={vw} bind:innerHeight={vh} />
in one of my pages so I can dynamically control some responsive elements. Up until a few versions ago it would work flawlessly but in the latest version (primo v1.7.2 server v1.0.0--beta.2) it makes the page not to render withshowing in the console and its index.html only has
with no
_module.js
getting generated either.I have replaced svelte:window with some js that does the same job for now.
P.S. This might only affect the server, I am not using a desktop client.