fix: provide better error message in case of missing +page.svelte - #8478
Conversation
🦋 Changeset detectedLatest commit: c41478c The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
| : null; | ||
|
|
||
| if (page_config.ssr) { | ||
| if (!branch.at(-1)?.node.component) { |
There was a problem hiding this comment.
Not wrapped with DEV because I noticed it's false when running vite dev in sites/kit.svelte.dev, similar to what Rich encountered. I'm wondering if this hints at a bigger problem? Is DEV not working as expected after all?
There was a problem hiding this comment.
I filed an issue so we can have a single place to investigate: #8492
|
Is this |
|
Hmm, except then again I've written import { redirect } from '@sveltejs/kit';
export function load() {
throw redirect(308, '/docs/introduction');
} |
|
Yes, because of that we can't just have a static check. The linked issue is handled by the implemented check, your edge case isn't thought, but I doubt that someone having only |
|
Yeah I had a quick go at adding logic to |
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
closes #8270
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm testand lint the project withpnpm lintandpnpm checkChangesets
pnpm changesetand following the prompts. Changesets that add features should beminorand those that fix bugs should bepatch. Please prefix changeset messages withfeat:,fix:, orchore:.