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

Fix default $error.svelte page #1021

Merged
merged 2 commits into from
Apr 14, 2021
Merged

Fix default $error.svelte page #1021

merged 2 commits into from
Apr 14, 2021

Conversation

GrygrFlzr
Copy link
Member

Currently you get Cannot read property 'message' of undefined with the default error page, as the props are no longer passed in by default.

@benmccann benmccann added the bug Something isn't working label Apr 14, 2021
@benmccann benmccann linked an issue Apr 14, 2021 that may be closed by this pull request
@Conduitry Conduitry linked an issue Apr 14, 2021 that may be closed by this pull request
@benmccann benmccann merged commit 8021d6b into master Apr 14, 2021
@benmccann benmccann deleted the default-error branch April 14, 2021 20:43
@snird snird mentioned this pull request Apr 15, 2021
zhammer added a commit to zhammer/writing that referenced this pull request Jun 14, 2021
zhammer added a commit to zhammer/writing that referenced this pull request Jun 14, 2021
* fix __error.svelte

sveltejs/kit#1021

* properly handle trailing slashes

i think this may be a bug i should report to svelte-kit; the
static-adapter doesn't properly handle redirecting away from trailing
slash on safari
bfanger pushed a commit to bfanger/kit that referenced this pull request Oct 18, 2021
Usage:
```json
kit: {
    prerender: {
      subfolders: false,
    },
```
Setting the kit.prerender.subfolders setting to false (default is true) will change the filename generation from "/about/index.html" to "/about.html"

Inspiration for the `subfolders` name came from nuxt:
https://nuxtjs.org/docs/configuration-glossary/configuration-generate/#subfolders

- Fixes sveltejs#1443,
- Related to sveltejs#2276, [sapper/sveltejs#1021](sveltejs/sapper#1021)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SSR hides a real error message Error thrown while rendering $error.svelte.
3 participants