René's URL Explorer Experiment


Title: bug: SSG prerender crashes on dynamic pages with getPrerenderPaths (FetchableDevEnvironment missing hot.api) · Issue #12 · voidzero-dev/void · GitHub

Open Graph Title: bug: SSG prerender crashes on dynamic pages with getPrerenderPaths (FetchableDevEnvironment missing hot.api) · Issue #12 · voidzero-dev/void

X Title: bug: SSG prerender crashes on dynamic pages with getPrerenderPaths (FetchableDevEnvironment missing hot.api) · Issue #12 · voidzero-dev/void

Description: Description collectPrerenderPaths() crashes when resolving dynamic pages that export getPrerenderPaths: TypeError: Cannot read properties of undefined (reading 'outsideEmitter') at Object.connect (vite/dist/node/chunks/fetchableEnvironme...

Open Graph Description: Description collectPrerenderPaths() crashes when resolving dynamic pages that export getPrerenderPaths: TypeError: Cannot read properties of undefined (reading 'outsideEmitter') at Object.connect (...

X Description: Description collectPrerenderPaths() crashes when resolving dynamic pages that export getPrerenderPaths: TypeError: Cannot read properties of undefined (reading 'outsideEmitter') at Object.c...

Opengraph URL: https://github.com/voidzero-dev/void/issues/12

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: SSG prerender crashes on dynamic pages with getPrerenderPaths (FetchableDevEnvironment missing hot.api)","articleBody":"## Description\n\n`collectPrerenderPaths()` crashes when resolving dynamic pages that export `getPrerenderPaths`:\n\n```\nTypeError: Cannot read properties of undefined (reading 'outsideEmitter')\n    at Object.connect (vite/dist/node/chunks/fetchableEnvironments.js:10923)\n    at new SSRCompatModuleRunner (fetchableEnvironments.js:10978)\n    at ssrLoadModule (fetchableEnvironments.js:10957)\n    at collectPrerenderPaths (deploy-BBYcX5sX.mjs:760)\n```\n\nOnly affects dynamic pages that export `getPrerenderPaths` — static pages and dynamic pages without it are fine.\n\n## Root Cause\n\n`collectPrerenderPaths()` calls `createServer({ root })` which loads the user's `vite.config.ts` — including `@cloudflare/vite-plugin` with `viteEnvironment: { name: \"ssr\" }`. This replaces the SSR environment with a `FetchableDevEnvironment` (`CloudflareDevEnvironment`).\n\nWhen `ssrLoadModule()` is then called, it creates an `SSRCompatModuleRunner` whose transport unconditionally accesses `environment.hot.api.outsideEmitter`. But `FetchableDevEnvironment`'s hot channel has no `api` property (it's initialized via `normalizeHotChannel({}, ...)` which doesn't add `api`), causing the crash.\n\n### Call chain\n\n1. `ssrLoadModule()` lazily creates `SSRCompatModuleRunner(environment)`\n2. Constructor passes `environment.hot` to `createServerModuleRunnerTransport({ channel: environment.hot })`\n3. Transport's `connect()` accesses `options.channel.api.outsideEmitter.on(...)` — **`api` is `undefined`**\n\n### Why `api` exists on `RunnableDevEnvironment` but not `FetchableDevEnvironment`\n\n- `RunnableDevEnvironment` → `createServerHotChannel()` → creates `api: { innerEmitter, outsideEmitter }`\n- `FetchableDevEnvironment` → `normalizeHotChannel({}, context.hot)` → no `api` property\n\n## Reproduction\n\nPR #10 adds a failing test that reproduces the crash by adding a `posts/[slug]` page to the `static-pages` playground that exports `getPrerenderPaths`.\n\nSee: #10\n\n## Related\n\n- Previously filed upstream as [vitejs/vite#21726](https://github.com/vitejs/vite/issues/21726) (closed) — whether this should also be addressed upstream is an open question, but regardless void should handle this case.","author":{"url":"https://github.com/hyfdev","@type":"Person","name":"hyfdev"},"datePublished":"2026-03-01T11:22:45Z","url":"https://github.com/voidzero-dev/void/issues/12"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:be4c876f-9aa7-526f-4f4d-c0db3bc7e54e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id975E:146618:4886E1:640D0E:6AFB9EE3
html-safe-noncee4a0fd80cf28a5ca1b869d45bdafd62bf759aac132c0d65f51507c5274d05144
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzVFOjE0NjYxODo0ODg2RTE6NjQwRDBFOjZBRkI5RUUzIiwidmlzaXRvcl9pZCI6IjEzMzUxMzA5NzEzMzM5NTkzOTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0d13f22e2438f922c0b54278bd12c2397ca13c0fb2ac5ff8679f6b9ad6762bca
hovercard-subject-tagissue:4006960567
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/voidzero-dev/void/12/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a253ca48566af02a2e1789f37ef73b098854c127d4fd387d54ee6b24fa97c9f3/voidzero-dev/void/issues/12
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a253ca48566af02a2e1789f37ef73b098854c127d4fd387d54ee6b24fa97c9f3/voidzero-dev/void/issues/12
og:image:altDescription collectPrerenderPaths() crashes when resolving dynamic pages that export getPrerenderPaths: TypeError: Cannot read properties of undefined (reading 'outsideEmitter') at Object.connect (...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehyfdev
hostnamegithub.com
expected-hostnamegithub.com
None3cefd19a936819d82cfb5279d50fb56fe79cb9ec30f0f807e04e89b0c58ffae1
turbo-cache-controlno-preview
go-importgithub.com/voidzero-dev/void git https://github.com/voidzero-dev/void.git
octolytics-dimension-user_id149750581
octolytics-dimension-user_loginvoidzero-dev
octolytics-dimension-repository_id1164437080
octolytics-dimension-repository_nwovoidzero-dev/void
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1164437080
octolytics-dimension-repository_network_root_nwovoidzero-dev/void
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release606800bdb1b81d125fc845bdcc262c9fe063fc8f
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/voidzero-dev/void/issues/12#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvoidzero-dev%2Fvoid%2Fissues%2F12
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvoidzero-dev%2Fvoid%2Fissues%2F12
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=voidzero-dev%2Fvoid
Reloadhttps://github.com/voidzero-dev/void/issues/12
Reloadhttps://github.com/voidzero-dev/void/issues/12
Reloadhttps://github.com/voidzero-dev/void/issues/12
voidzero-devhttps://github.com/voidzero-dev
voidhttps://github.com/voidzero-dev/void
Codehttps://github.com/voidzero-dev/void
Issues29 (29)https://github.com/voidzero-dev/void/issues
Pull requests12 (12)https://github.com/voidzero-dev/void/pulls
Discussionshttps://github.com/voidzero-dev/void/discussions
Actionshttps://github.com/voidzero-dev/void/actions
Security and qualityhttps://github.com/voidzero-dev/void/security
Insightshttps://github.com/voidzero-dev/void/pulse
https://github.com/voidzero-dev/void
New issuehttps://github.com/login?return_to=https://github.com/voidzero-dev/void/issues/12
New issuehttps://github.com/login?return_to=https://github.com/voidzero-dev/void/issues/12
Bughttps://github.com/voidzero-dev/void/issues?q=type:"Bug"
bug: SSG prerender crashes on dynamic pages with getPrerenderPaths (FetchableDevEnvironment missing hot.api)https://github.com/voidzero-dev/void/issues/12#top
bugSomething isn't workinghttps://github.com/voidzero-dev/void/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/hyfdev
hyfdevhttps://github.com/hyfdev
on Mar 1, 2026https://github.com/voidzero-dev/void/issues/12#issue-4006960567
#10https://github.com/voidzero-dev/void/pull/10
#10https://github.com/voidzero-dev/void/pull/10
vitejs/vite#21726https://github.com/vitejs/vite/issues/21726
hyfdevhttps://github.com/hyfdev
bugSomething isn't workinghttps://github.com/voidzero-dev/void/issues?q=state%3Aopen%20label%3A%22bug%22
on Mar 1, 2026https://github.com/voidzero-dev/void/issues/12#event-23169024064
hyfdevhttps://github.com/hyfdev
Bughttps://github.com/voidzero-dev/void/issues?q=type:"Bug"
on Mar 1, 2026https://github.com/voidzero-dev/void/issues/12#event-23169027935
yyx990803https://github.com/yyx990803
completedhttps://github.com/voidzero-dev/void/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
4f3132ahttps://github.com/voidzero-dev/void/commit/4f3132a3b1123fef679f9506b877f87dc09741c0
on Mar 2, 2026https://github.com/voidzero-dev/void/issues/12#event-23194987653
hyfdevhttps://github.com/hyfdev
on Mar 2, 2026https://github.com/voidzero-dev/void/issues/12#event-23198768513
test: reproduce getPrerenderPaths limitation with virtual moduleshttps://github.com/voidzero-dev/void/commit/01b2fcbdb99e37614181e3cc7191c8dfe9f756e8
01b2fcbhttps://github.com/voidzero-dev/void/commit/01b2fcbdb99e37614181e3cc7191c8dfe9f756e8
fix: load user plugins in collectPrerenderPaths for virtual module su…https://github.com/voidzero-dev/void/commit/241d5f3cb836400cf4e0dadc1d2e70076c1417e8
241d5f3https://github.com/voidzero-dev/void/commit/241d5f3cb836400cf4e0dadc1d2e70076c1417e8
yyx990803https://github.com/yyx990803
on Mar 7, 2026https://github.com/voidzero-dev/void/issues/12#event-23357310255
chore: fix all lint warningshttps://github.com/voidzero-dev/void/commit/60c2a6327b28928f6163b6fe93b57292ee4e627f
https://docs.github.com/articles/closing-issues-via-commit-messages
60c2a63https://github.com/voidzero-dev/void/commit/60c2a6327b28928f6163b6fe93b57292ee4e627f
cpojerhttps://github.com/cpojer
on Sep 11, 2026https://github.com/voidzero-dev/void/issues/12#event-30967564705
perf(dashboard): parallelize home loader usage fetch (#12)https://github.com/voidzero-dev/void/commit/5e57b497ac8b813328a650a8f5bd700484dc96ff
#12https://github.com/voidzero-dev/void/issues/12
5e57b49https://github.com/voidzero-dev/void/commit/5e57b497ac8b813328a650a8f5bd700484dc96ff
fix(api/sandbox-host): declare Sandbox class as container-enabled in …https://github.com/voidzero-dev/void/commit/583aaaca1551f370d60130502b2ee51744db998a
583aaachttps://github.com/voidzero-dev/void/commit/583aaaca1551f370d60130502b2ee51744db998a
Sign up for freehttps://github.com/signup?return_to=https://github.com/voidzero-dev/void/issues/12
Sign in to commenthttps://github.com/login?return_to=https://github.com/voidzero-dev/void/issues/12
bugSomething isn't workinghttps://github.com/voidzero-dev/void/issues?q=state%3Aopen%20label%3A%22bug%22
Bughttps://github.com/voidzero-dev/void/issues?q=type:"Bug"
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.