Skip to content
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

ssr : false - Should dev server not try to server render #776

Closed
printfhere opened this issue Mar 30, 2021 · 2 comments
Closed

ssr : false - Should dev server not try to server render #776

printfhere opened this issue Mar 30, 2021 · 2 comments

Comments

@printfhere
Copy link

Hi,

I tested the new spa mode with ssr : false and it seems that the dev server still try to evaluate my components on the server (can't import/use libraries which manipulate the DOM outside of onMount).

I can't build the app aswell.

Is it expected ? Even with ssr : false, do I need to code the app as isomorphic ?

In addition, I don't understand well when to add my depencies as dev or prod, if you could explain to me why for example when using Quill it works as dev dep but not as prod dep ?

Thanks for your time and your work on SvelteKit, it is great <3

@printfhere
Copy link
Author

Sorry I didn't see the advertisement about seeking help here, I am closing the issue.

@benmccann
Copy link
Member

well if ssr: false and it's rendering on the server that sounds like a bug

the devDep vs regular dep is a Vite thing #655 (comment)

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants