René's URL Explorer Experiment


Title: test: failing test for collectPrerenderPaths with getPrerenderPaths by hyfdev · Pull Request #10 · voidzero-dev/void · GitHub

Open Graph Title: test: failing test for collectPrerenderPaths with getPrerenderPaths by hyfdev · Pull Request #10 · voidzero-dev/void

X Title: test: failing test for collectPrerenderPaths with getPrerenderPaths by hyfdev · Pull Request #10 · voidzero-dev/void

Description: Bug collectPrerenderPaths() crashes when resolving dynamic pages that export getPrerenderPaths: TypeError: Cannot read properties of undefined (reading 'outsideEmitter') at Object.connect (vite/dist/node/chunks/fetchableEnvironments.js:10923) at new SSRCompatModuleRunner (fetchableEnvironments.js:10978) at ssrLoadModule (fetchableEnvironments.js:10957) at collectPrerenderPaths (deploy-BBYcX5sX.mjs:760) Root Cause 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). When 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. Call chain ssrLoadModule() lazily creates SSRCompatModuleRunner(environment) Constructor passes environment.hot to createServerModuleRunnerTransport({ channel: environment.hot }) Transport's connect() accesses options.channel.api.outsideEmitter.on(...) — api is undefined Why api exists on RunnableDevEnvironment but not FetchableDevEnvironment RunnableDevEnvironment → createServerHotChannel() → creates api: { innerEmitter, outsideEmitter } FetchableDevEnvironment → normalizeHotChannel({}, context.hot) → no api property Why Tests Didn't Catch It The static-pages integration test only covered: Static pages (no params) — prerendered via pattern matching, no ssrLoadModule() needed Dynamic pages without getPrerenderPaths — asserted as NOT prerendered The ssrLoadModule() code path in collectPrerenderPaths() was never exercised. Reproduction This PR adds a posts/[slug] page to the static-pages playground that exports getPrerenderPaths, which triggers the crash. The test currently fails. Related Previously filed as vitejs/vite#21726 (closed) — whether this should also be addressed upstream is an open question, but regardless void should handle this case.

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

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

Opengraph URL: https://github.com/voidzero-dev/void/pull/10

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:5e0284e8-5dcb-6d90-d11c-2c3c68ba5ea9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id80E2:B93E6:52978:702F4:6AFBB5F6
html-safe-noncecb044e074763fa21fca8aa6dc0af753ca0513878aeb0f2192b27e07c222f6d3a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MEUyOkI5M0U2OjUyOTc4OjcwMkY0OjZBRkJCNUY2IiwidmlzaXRvcl9pZCI6Ijc1MjM1MTg3MTE2NjU1OTczNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf3a971e40eee7549def2584b24e83f84a7a03f4330d193ad6c81856975aba415
hovercard-subject-tagpull_request:3340378211
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/voidzero-dev/void/pull/10/files
twitter:imagehttps://avatars.githubusercontent.com/u/49502170?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/49502170?s=400&v=4
og:image:altBug collectPrerenderPaths() crashes when resolving dynamic pages that export getPrerenderPaths: TypeError: Cannot read properties of undefined (reading 'outsideEmitter') at Object.conne...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None2b2ef9c1578c18d8ed27027940544c958743213cf4461659f14d3ccdf51e162c
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee4cce0e99cf61481a318ff12c2e8580153a6c7c6
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/voidzero-dev/void/pull/10/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvoidzero-dev%2Fvoid%2Fpull%2F10%2Ffiles
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%2Fpull%2F10%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=voidzero-dev%2Fvoid
Reloadhttps://github.com/voidzero-dev/void/pull/10/files
Reloadhttps://github.com/voidzero-dev/void/pull/10/files
Reloadhttps://github.com/voidzero-dev/void/pull/10/files
voidzero-devhttps://github.com/voidzero-dev
voidhttps://github.com/voidzero-dev/void
Codehttps://github.com/voidzero-dev/void
Issues31 (31)https://github.com/voidzero-dev/void/issues
Pull requests10 (10)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
Sign up for GitHub https://github.com/signup?return_to=%2Fvoidzero-dev%2Fvoid%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fvoidzero-dev%2Fvoid%2Fissues%2Fnew%2Fchoose
hyfdevhttps://github.com/hyfdev
mainhttps://github.com/voidzero-dev/void/tree/main
fix/prerender-ssrloadmodule-fetchable-envhttps://github.com/voidzero-dev/void/tree/fix/prerender-ssrloadmodule-fetchable-env
Conversation 4 https://github.com/voidzero-dev/void/pull/10
Commits 1 https://github.com/voidzero-dev/void/pull/10/commits
Checks 6 https://github.com/voidzero-dev/void/pull/10/checks
Files changed https://github.com/voidzero-dev/void/pull/10/files
Please reload this pagehttps://github.com/voidzero-dev/void/pull/10/files
test: failing test for collectPrerenderPaths with getPrerenderPaths https://github.com/voidzero-dev/void/pull/10/files#top
Show all changes 1 commit https://github.com/voidzero-dev/void/pull/10/files
ea4fea7 test: add failing test for dynamic prerender with getPrerenderPaths hyfdev Mar 1, 2026 https://github.com/voidzero-dev/void/pull/10/commits/ea4fea78b75a8f343108a276aa2f437167bb0670
Clear filters https://github.com/voidzero-dev/void/pull/10/files
Please reload this pagehttps://github.com/voidzero-dev/void/pull/10/files
Please reload this pagehttps://github.com/voidzero-dev/void/pull/10/files
static-pages.test.ts https://github.com/voidzero-dev/void/pull/10/files#diff-c6c226c7172d82a95d39352367b32581c0900a9ff5f2329a9ef5a1f4ce65c805
[slug].server.ts https://github.com/voidzero-dev/void/pull/10/files#diff-5603b2ee5f52e9524c3d46047ff162e6a85f61fded6b53ae062e4df16f0c8c1e
[slug].vue https://github.com/voidzero-dev/void/pull/10/files#diff-dbf54e9760008fdae52f1ca13e9e35b904575de2af360b3df7f147128ffacbfb
packages/void/test/integration/static-pages.test.tshttps://github.com/voidzero-dev/void/pull/10/files#diff-c6c226c7172d82a95d39352367b32581c0900a9ff5f2329a9ef5a1f4ce65c805
View file https://github.com/voidzero-dev/void/blob/ea4fea78b75a8f343108a276aa2f437167bb0670/packages/void/test/integration/static-pages.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/voidzero-dev/void/pull/10/{{ revealButtonHref }}
https://github.com/voidzero-dev/void/pull/10/files#diff-c6c226c7172d82a95d39352367b32581c0900a9ff5f2329a9ef5a1f4ce65c805
https://github.com/voidzero-dev/void/actions/runs/22540078630/job/65293886639?pr=10
https://github.com/voidzero-dev/void/pull/10/files#diff-c6c226c7172d82a95d39352367b32581c0900a9ff5f2329a9ef5a1f4ce65c805
https://github.com/voidzero-dev/void/pull/10/files#diff-c6c226c7172d82a95d39352367b32581c0900a9ff5f2329a9ef5a1f4ce65c805
Please reload this pagehttps://github.com/voidzero-dev/void/pull/10/files
Please reload this pagehttps://github.com/voidzero-dev/void/pull/10/files
https://github.com/voidzero-dev/void/pull/10/files#diff-c6c226c7172d82a95d39352367b32581c0900a9ff5f2329a9ef5a1f4ce65c805
playground/static-pages/pages/posts/[slug].server.tshttps://github.com/voidzero-dev/void/pull/10/files#diff-5603b2ee5f52e9524c3d46047ff162e6a85f61fded6b53ae062e4df16f0c8c1e
View file https://github.com/voidzero-dev/void/blob/ea4fea78b75a8f343108a276aa2f437167bb0670/playground/static-pages/pages/posts/%5Bslug%5D.server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/voidzero-dev/void/pull/10/{{ revealButtonHref }}
playground/static-pages/pages/posts/[slug].vuehttps://github.com/voidzero-dev/void/pull/10/files#diff-dbf54e9760008fdae52f1ca13e9e35b904575de2af360b3df7f147128ffacbfb
View file https://github.com/voidzero-dev/void/blob/ea4fea78b75a8f343108a276aa2f437167bb0670/playground/static-pages/pages/posts/%5Bslug%5D.vue
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/voidzero-dev/void/pull/10/{{ revealButtonHref }}
Please reload this pagehttps://github.com/voidzero-dev/void/pull/10/files
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.