You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
I have a project with a route like src/routes/example/[slug].svelte and src/routes/example/[slug].json.js but when I run sapper export --legacy in my project, it doesn't always export every json file for every slug. It seems like there's a race condition of some kind because sometimes it exports three, sometimes it exports all five.
degit mhkeller/layercake.graphics#bug test-bug
cd test-bug
npm install
npm run export
Check out the folder docs/example/and you will see maybe all five json files corresponding to the exported folders.
Expected behavior
I expect all json files to be baked for every corresponding slugged route.
Information about your Sapper Installation:
Sapper version 0.27.9
Svelte version 3.18.1
Running rollup
Severity
I think this is pretty severe since it leads to some pages 404'ing in certain scenarios. I've fixed it temporarily by copying the exported json files when it does work and manually putting them in my export folder.
The text was updated successfully, but these errors were encountered:
i've spent so much time trying to figure out why sapper export often
misses exporting the [slug].json for certain pages. in b0b3b83 i
assumed the issue was (somehow) using hyphens in slugs so switched
to using underscores but this started happening again.
i found the followng issues which all are "closed" or "merged" but
this is _definitely_ still a bug. ended up looking at options for the
sapper export command and saw i can turn off concurrent requests,
which seems to have fixed the issue.
- sveltejs/sapper#1078
- sveltejs/sapper#893
- sveltejs/sapper#869
hoping to submit a repro of the issue to sapper soon
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
I have a project with a route like
src/routes/example/[slug].svelte
andsrc/routes/example/[slug].json.js
but when I runsapper export --legacy
in my project, it doesn't always export every json file for every slug. It seems like there's a race condition of some kind because sometimes it exports three, sometimes it exports all five.To Reproduce
I made a branch called
bug
on this repo.Check out the folder
docs/example/
and you will see maybe all five json files corresponding to the exported folders.Expected behavior
I expect all json files to be baked for every corresponding slugged route.
Information about your Sapper Installation:
Sapper version 0.27.9
Svelte version 3.18.1
Running rollup
Severity
I think this is pretty severe since it leads to some pages 404'ing in certain scenarios. I've fixed it temporarily by copying the exported json files when it does work and manually putting them in my export folder.
The text was updated successfully, but these errors were encountered: