-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<Select> is not a valid SSR component in Sapper #87
Comments
Thanks. I'll take a look.
…On Sat, 19 Oct 2019, 17:11 hdeyana, ***@***.***> wrote:
i'm using sapper, if you install it with npm i svelte-select, and use it.
you will get this error
<Select> is not a valid SSR component
to resolve it, just *install it in dev dependency*
npm i --save-dev svelte-select
relate to this
sveltejs/sapper#774 <sveltejs/sapper#774>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#87?email_source=notifications&email_token=AAUAM7TR4MS6T66SRWXJRE3QPKQKDA5CNFSM4JCOMXU2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HS43SLQ>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAUAM7WH5ZIJ3NCPOGWQHFLQPKQKDANCNFSM4JCOMXUQ>
.
|
@hdeyana strange, I just tried adding svelte-select to a sapper application and didn't see the error. What version of Sapper are you using? |
@rob-balfre try in slow 3G connection you'll see the error, then error disapear. |
@hdeyana are you using webpack or rollup? If webpack make sure you do this.. https://github.com/rob-balfre/svelte-select#configuring-webpack |
@rob-balfre im using rollup. |
How are you importing svelte-select? |
OH WAIT! I SEE IT NOW! I will debug :D |
Updated README, thanks for spotting that @hdeyana 👍 |
It is also possible to render the select only on the client:
|
Thank you @softwarerero {#if (process.browser) } |
|
i'm using sapper, if you install it with npm i svelte-select, and use it.
you will get this error
<Select> is not a valid SSR component
to resolve it, just install it in dev dependency
relate to this
sveltejs/sapper#774
if this is good way to solve, maybe you can add in readme ?
The text was updated successfully, but these errors were encountered: