kit: ssr: false - Breaks all styling
Describe the bug
Styling seems to break when npm run build && npm start
with ssr: false
.
npm start dev
appears to be fine.
To Reproduce
npm init svelte@next
ssr: false
in svelte.config.cjs
npm run build && npm start
- The output of
npx envinfo --system --npmPackages svelte,@sveltejs/kit,vite --binaries --browsers
System:
OS: macOS 11.2.2
CPU: (8) arm64 Apple M1
Memory: 373.28 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 15.12.0 - /opt/homebrew/bin/node
npm: 7.6.3 - /opt/homebrew/bin/npm
Browsers:
Firefox: 87.0
Safari: 14.0.3
Safari Technology Preview: 14.2
npmPackages:
@sveltejs/kit: next => 1.0.0-next.71
svelte: ^3.29.0 => 3.37.0
vite: ^2.1.0 => 2.1.5
- Your browser Firefox
- Your adapter (e.g. Node, static, Vercel, Begin, etc…) Tested on node & static
Severity How severe an issue is this bug to you? Is this annoying, blocking some users, blocking an upgrade or blocking your usage of SvelteKit entirely?
Production builds appear to be blocked for users not using ssr
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 7
- Comments: 19 (17 by maintainers)
I have the same issue with all styles disappearing with ssr: false. Rolling back to kit 1.0.0-next.65 made styles appear again.
Thanks @mattiash, can confirm rolling back to
1.0.0-next.65
has worked as a temporary fix for me as well.