Have you managed to fix it? It seems like quite a common error with Svelte builds but I haven't seen a solution yet.