-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
I build a site with static page and dynamic page both, this problem has broken dynamic pages
Reproduction
# select Skeleton project
npm create svelte@latest test
cd test
npm i
echo 'export const prerender = true;export const ssr = false;export async function load() {};' > src/routes/+layout.server.ts
npm run build
npm run preview -- --open
# got 500, expect Skeleton default pageLogs
No response
System Info
System:
OS: Linux 6.1 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
CPU: (16) x64 AMD Ryzen 7 5700G with Radeon Graphics
Memory: 17.72 GB / 30.64 GB
Container: Yes
Shell: 5.2.15 - /bin/bash
Binaries:
Node: 18.17.1 - /usr/bin/node
Yarn: 1.22.19 - /usr/bin/yarn
npm: 9.6.7 - /usr/bin/npm
pnpm: 7.18.0 - /usr/bin/pnpm
bun: 1.0.2 - ~/.bun/bin/bun
Browsers:
Chrome: 119.0.6045.105
npmPackages:
@sveltejs/adapter-auto: ^2.0.0 => 2.1.1
@sveltejs/adapter-static: ^2.0.3 => 2.0.3
@sveltejs/kit: ^1.5.0 => 1.27.3
svelte: ^3.54.0 => 3.59.2
vite: ^4.0.0 => 4.5.0Severity
blocking all usage of SvelteKit
Additional Information
I use +layout.server.ts to provide { navs: [ {name:"home",link: "/"} ] } for breadcrumb nav
src/routes/
├── +page.svelte
├── +layout.server.ts # { navs: [ {name:"home",link: "/"] }
└── user
├── +layout.server.ts # { navs: [ {name:"home",link: "/"}, {name:"user center",link: "/user"}] }
└── +page.svelte
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working