René's URL Explorer Experiment


Title: React Router, TanStack Start and vinext dev: a cron that imports `defineScheduled` from 'void' breaks every dev trigger · Issue #417 · voidzero-dev/void · GitHub

Open Graph Title: React Router, TanStack Start and vinext dev: a cron that imports `defineScheduled` from 'void' breaks every dev trigger · Issue #417 · voidzero-dev/void

X Title: React Router, TanStack Start and vinext dev: a cron that imports `defineScheduled` from 'void' breaks every dev trigger · Issue #417 · voidzero-dev/void

Description: Problem The jobs and queues guides show this import (docs/guide/jobs.md:22, docs/guide/queues.md:19): import { defineScheduled } from 'void'; In a React Router, TanStack Start or vinext app, vp dev cannot load a cron or queue file with t...

Open Graph Description: Problem The jobs and queues guides show this import (docs/guide/jobs.md:22, docs/guide/queues.md:19): import { defineScheduled } from 'void'; In a React Router, TanStack Start or vinext app, vp dev...

X Description: Problem The jobs and queues guides show this import (docs/guide/jobs.md:22, docs/guide/queues.md:19): import { defineScheduled } from 'void'; In a React Router, TanStack Start or vinext app...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"React Router, TanStack Start and vinext dev: a cron that imports `defineScheduled` from 'void' breaks every dev trigger","articleBody":"## Problem\n\nThe jobs and queues guides show this import (`docs/guide/jobs.md:22`, `docs/guide/queues.md:19`):\n\n```ts\nimport { defineScheduled } from 'void';\n```\n\nIn a React Router, TanStack Start or vinext app, `vp dev` cannot load a cron or queue file with this import. A POST to `/__void/scheduled` returns 500:\n\n```\nThe file does not exist at \".../node_modules/.vite/deps_ssr/jiti.js?v=f8fc50fd\" which is in the\noptimize deps directory. The dependency might be incompatible with the dep optimizer. Try adding\nit to `optimizeDeps.exclude`.\n```\n\nThe terminal shows why. Bare `void` loaded the Vite plugin itself, and the dependency optimizer tried to bundle Wrangler into the worker:\n\n```\n(ssr) error while updating dependencies:\nError: Error during dependency optimization:\nBuild failed with 1 error:\n[UNRESOLVED_IMPORT] Could not resolve './node.js' in .../blake3-wasm/esm/index.js\n  imported by .../wrangler/wrangler-dist/cli.js\n  imported by .../@cloudflare/vite-plugin/dist/index.mjs\n```\n\nOne such file breaks **every** dev cron and queue trigger, because the generated dispatch module imports all of them. Pages still return 200. Production builds are fine, because the cron bundle maps bare `void` to `void/handler`.\n\n## Repro\n\n1. Copy `playground/react-router`.\n2. Add `crons/tick.ts`:\n   ```ts\n   import { defineScheduled } from 'void';\n\n   export const cron = '*/5 * * * *';\n\n   export default defineScheduled(async () => {\n     console.log('tick ran');\n   });\n   ```\n3. Run `vp dev`, then:\n   ```sh\n   curl -X POST http://localhost:5173/__void/scheduled \\\n     -H \"x-void-dev-trigger: $(cat .void/dev-trigger-token)\" \\\n     -d '{\"cron\":\"*/5 * * * *\",\"scheduledTime\":'\"$(date +%s000)\"'}'\n   ```\n4. The response is 500 with the message above, on every try.\n\n## Cause\n\nBare `void` resolves to the package entry, `dist/index.mjs`, which is the Vite plugin. Other paths redirect it to the light `void/handler` entry, but the React Router, TanStack Start and vinext plugin list has no such redirect:\n\n| Where | Redirects bare `void` |\n| --- | --- |\n| Void apps (`packages/void/src/plugin-routing.ts:603-607`) | yes |\n| SvelteKit dev (`packages/void/src/plugin-framework.ts:234-246`, added in #413) | yes |\n| Production cron/queue bundle (`packages/void/src/cli/wrapper.ts:142-147`) | yes |\n| React Router, TanStack Start, vinext (`packages/void/src/index.ts:727-767`) | **no** |\n\nThe dev dispatch module imports each cron file into the framework's workerd environment (`packages/void/src/plugin-framework-triggers.ts:114`).\n\n## Suggested fix\n\nAdd the same `resolveId` redirect to the React Router, TanStack Start and vinext plugin list: order `pre`, filter `^void$`, server environments only, resolve to `void/handler`. Add a dev integration test with a cron that imports `defineScheduled` from 'void'.\n\n## Evidence\n\n- Reproduced once at the head of #413 with a copy of `playground/react-router` (workspace-linked `void`), using the steps above. Three POSTs returned 500; `GET /` returned 200.\n- Code read at origin/main: the plugin list (`index.ts:727-767`) and the production alias (`wrapper.ts:131`) are the same, so main behaves the same way.\n- Not changed by #413.\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n\nhttps://claude.ai/code/session_0123r5HnanmW2VUrZ7VWDufH\n","author":{"url":"https://github.com/Brooooooklyn","@type":"Person","name":"Brooooooklyn"},"datePublished":"2026-10-14T04:05:29Z","url":"https://github.com/voidzero-dev/void/issues/417"}

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:91bf6b7a-7c77-09ff-05a8-6a26c44901b4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCDB0:B85F4:204750A:2B8C9D7:6AFBA3E8
html-safe-nonce8d436500368efa3993be18dbe297b31ab21aa99128d002b0510928a2a5954c6f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDREIwOkI4NUY0OjIwNDc1MEE6MkI4QzlENzo2QUZCQTNFOCIsInZpc2l0b3JfaWQiOiI1MTQ1NDcyNzIwNTAxOTczOTkyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb469832550fec2bc4c011a5ed09b224d1aa89936d91d519c95418b07f0947be5
hovercard-subject-tagissue:5841738276
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/417/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0dab5a5267805ae0bb7dcf72222e2b93b6499ecd431644156abed7084fa19109/voidzero-dev/void/issues/417
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0dab5a5267805ae0bb7dcf72222e2b93b6499ecd431644156abed7084fa19109/voidzero-dev/void/issues/417
og:image:altProblem The jobs and queues guides show this import (docs/guide/jobs.md:22, docs/guide/queues.md:19): import { defineScheduled } from 'void'; In a React Router, TanStack Start or vinext app, vp dev...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameBrooooooklyn
hostnamegithub.com
expected-hostnamegithub.com
None03e5090f0cea887cafa036e3af34d7c668d83b5e9e9e03df72a90efb49b69cdf
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
release41f00295b9a35dca977890ab83b22788ab211dc8
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/voidzero-dev/void/issues/417#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvoidzero-dev%2Fvoid%2Fissues%2F417
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%2F417
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/417
Reloadhttps://github.com/voidzero-dev/void/issues/417
Reloadhttps://github.com/voidzero-dev/void/issues/417
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 requests9 (9)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/417
New issuehttps://github.com/login?return_to=https://github.com/voidzero-dev/void/issues/417
#413https://github.com/voidzero-dev/void/pull/413
React Router, TanStack Start and vinext dev: a cron that imports defineScheduled from 'void' breaks every dev triggerhttps://github.com/voidzero-dev/void/issues/417#top
#413https://github.com/voidzero-dev/void/pull/413
bugSomething isn't workinghttps://github.com/voidzero-dev/void/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/Brooooooklyn
Brooooooklynhttps://github.com/Brooooooklyn
on Oct 14, 2026https://github.com/voidzero-dev/void/issues/417#issue-5841738276
#413https://github.com/voidzero-dev/void/pull/413
fix(void): make PostgreSQL and MySQL void/db work across frameworks, builds and deploys #413https://github.com/voidzero-dev/void/pull/413
fix(void): make PostgreSQL and MySQL void/db work across frameworks, builds and deploys #413https://github.com/voidzero-dev/void/pull/413
Claude Codehttps://claude.com/claude-code
https://claude.ai/code/session_0123r5HnanmW2VUrZ7VWDufHhttps://claude.ai/code/session_0123r5HnanmW2VUrZ7VWDufH
Brooooooklynhttps://github.com/Brooooooklyn
bugSomething isn't workinghttps://github.com/voidzero-dev/void/issues?q=state%3Aopen%20label%3A%22bug%22
on Oct 14, 2026https://github.com/voidzero-dev/void/issues/417#event-33193186763
Brooooooklynhttps://github.com/Brooooooklyn
on Oct 14, 2026https://github.com/voidzero-dev/void/issues/417#event-33206288320
fix(void): give framework dev crons the handler exports of bare void,…https://github.com/voidzero-dev/void/commit/86495f92041f84a83326c87981224da64838917d
https://docs.github.com/articles/closing-issues-via-commit-messages
86495f9https://github.com/voidzero-dev/void/commit/86495f92041f84a83326c87981224da64838917d
fix(void): give framework dev crons the handler exports of bare void,…https://github.com/voidzero-dev/void/commit/04fa86d57d0cce48ea962e30b519dcdc469608e3
https://docs.github.com/articles/closing-issues-via-commit-messages
04fa86dhttps://github.com/voidzero-dev/void/commit/04fa86d57d0cce48ea962e30b519dcdc469608e3
fix(void): give framework dev crons the handler exports of bare void,…https://github.com/voidzero-dev/void/commit/763b856b2063dd2bc7e8d3f5fe756627921718f2
https://docs.github.com/articles/closing-issues-via-commit-messages
763b856https://github.com/voidzero-dev/void/commit/763b856b2063dd2bc7e8d3f5fe756627921718f2
fix(void): give framework dev crons the handler exports of bare void,…https://github.com/voidzero-dev/void/commit/d963d20c61bbe5534a2c757f97bff4893313afd3
https://docs.github.com/articles/closing-issues-via-commit-messages
d963d20https://github.com/voidzero-dev/void/commit/d963d20c61bbe5534a2c757f97bff4893313afd3
fix(void): give framework dev crons the handler exports of bare void,…https://github.com/voidzero-dev/void/commit/ee0267bc8515461d0208ce4bd4555f91a06b543f
https://docs.github.com/articles/closing-issues-via-commit-messages
ee0267bhttps://github.com/voidzero-dev/void/commit/ee0267bc8515461d0208ce4bd4555f91a06b543f
Brooooooklynhttps://github.com/Brooooooklyn
completedhttps://github.com/voidzero-dev/void/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#413https://github.com/voidzero-dev/void/pull/413
on Oct 14, 2026https://github.com/voidzero-dev/void/issues/417#event-33218438812
Sign up for freehttps://github.com/signup?return_to=https://github.com/voidzero-dev/void/issues/417
Sign in to commenthttps://github.com/login?return_to=https://github.com/voidzero-dev/void/issues/417
bugSomething isn't workinghttps://github.com/voidzero-dev/void/issues?q=state%3Aopen%20label%3A%22bug%22
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.