Sapper 500 Error
teds31 opened this issue · comments
This works very well but unfortunately, there is a brief second of a 500 error saying this is a not a valid SSR component. The page loads after the error comes up quickly but it is still noticeable.
Hi, thanks for the feedback. I tried it and found that this issue occurs with sapper rollup template.
sveltejs/sapper#774 discussed a similar problem and shown that it can be solved by moving svelte-lazy
to devDependencies:
npm i -D svelte-lazy
See https://github.com/sveltejs/sapper-template#using-external-components.
Hi, thanks for the feedback. I tried it and found that this issue occurs with sapper rollup template.
sveltejs/sapper#774 discussed a similar problem and shown that it can be solved by movingsvelte-lazy
to devDependencies:npm i -D svelte-lazy
See https://github.com/sveltejs/sapper-template#using-external-components.
awesome fixed! i love this btw! more stars!
I'm really glad to hear that!