René's URL Explorer Experiment


Title: bug: Type Instantiation is excessively deep Error when Defining a Job schema with `eventTrigger` · Issue #487 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: bug: Type Instantiation is excessively deep Error when Defining a Job schema with `eventTrigger` · Issue #487 · triggerdotdev/trigger.dev

X Title: bug: Type Instantiation is excessively deep Error when Defining a Job schema with `eventTrigger` · Issue #487 · triggerdotdev/trigger.dev

Description: Provide environment information System: OS: Linux 6.1 Manjaro Linux CPU: (16) x64 Intel(R) Core(TM) i7-10870H CPU @ 2.20GHz Memory: 20.98 GB / 31.13 GB Container: Yes Shell: 5.1.16 - /bin/bash Binaries: Node: 20.5.1 - ~/.nvm/versions/nod...

Open Graph Description: Provide environment information System: OS: Linux 6.1 Manjaro Linux CPU: (16) x64 Intel(R) Core(TM) i7-10870H CPU @ 2.20GHz Memory: 20.98 GB / 31.13 GB Container: Yes Shell: 5.1.16 - /bin/bash Bina...

X Description: Provide environment information System: OS: Linux 6.1 Manjaro Linux CPU: (16) x64 Intel(R) Core(TM) i7-10870H CPU @ 2.20GHz Memory: 20.98 GB / 31.13 GB Container: Yes Shell: 5.1.16 - /bin/bash Bina...

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/issues/487

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: Type Instantiation is excessively deep Error when Defining a Job schema with `eventTrigger`","articleBody":"### Provide environment information\n\n\r\n  System:\r\n    OS: Linux 6.1 Manjaro Linux\r\n    CPU: (16) x64 Intel(R) Core(TM) i7-10870H CPU @ 2.20GHz\r\n    Memory: 20.98 GB / 31.13 GB\r\n    Container: Yes\r\n    Shell: 5.1.16 - /bin/bash\r\n  Binaries:\r\n    Node: 20.5.1 - ~/.nvm/versions/node/v20.5.1/bin/node\r\n    Yarn: 1.22.19 - ~/.nvm/versions/node/v20.5.1/bin/yarn\r\n    npm: 9.8.0 - ~/.nvm/versions/node/v20.5.1/bin/npm\r\n\n\n### Describe the bug\n\n#### Description\r\nWhile implementing a job that fetches and stores Discourse posts using the Trigger.dev SDK and Supabase, I encountered a TypeScript error: \"Type instantiation is excessively deep and possibly infinite (ts2589)\".\r\n\r\nThe error occurs when defining the `eventTrigger` as shown below:\r\n\r\n```typescript\r\nclient.defineJob({\r\n  id: \"discourse-example-job\",\r\n  name: \"Fetch and Store Discourse Posts\",\r\n  version: \"0.0.1\",\r\n  trigger: eventTrigger({\r\n    name: \"supabase.fetch-data\",\r\n    schema: z.object({\r\n      org_id: z.string(),\r\n      base_discourse_url: z.string(),\r\n    }),\r\n  }),\r\n  // ... (rest of the code)\r\n});\r\n```\r\nError Message\r\n\r\n`Type instantiation is excessively deep and possibly infinite.ts(2589)`\n\n### Reproduction repo\n\nPrivate Repo\n\n### To reproduce\n\n### Steps to Reproduce\r\n1. Define a job using client.defineJob\r\n2. Inside the eventTrigger method, define a z.object schema with the properties as shown above.\r\n3. Upon doing so, the TypeScript error appears.\r\n\r\n### Expected Behavior\r\nI expect to be able to define the job's trigger with eventTrigger and the z.object schema without encountering a TypeScript error.\r\n\n\n### Additional information\n\n### Additional Information\r\n\r\n \"@trigger.dev/nextjs\": \"^2.0.14\",\r\n    \"@trigger.dev/react\": \"^2.1.0\",\r\n    \"@trigger.dev/sdk\": \"^2.0.14\",\r\n    \"@trigger.dev/supabase\": \"^2.0.14\",\r\n    \r\n  Node version: v20.5.1\r\n","author":{"url":"https://github.com/Slyracoon23","@type":"Person","name":"Slyracoon23"},"datePublished":"2023-09-18T11:51:17Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/487"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:13c609b1-a9a4-b3f2-0f14-1f68fd8393e2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA216:3D538F:2B17B6:3FF0CC:6AFADE6F
html-safe-nonce5e731d3fbaad9f2966b5633027003337cb6e10acca8b31ad84c9e3fc0fa5824f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjE2OjNENTM4RjoyQjE3QjY6M0ZGMENDOjZBRkFERTZGIiwidmlzaXRvcl9pZCI6Ijg2NTM2OTQ1MzQzNTUxODExNjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2dd3a1ffb62a9b3fc92d8d0f455cfbd1413bd4f1e60c21347e939cd0157fceab
hovercard-subject-tagissue:1900766921
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/triggerdotdev/trigger.dev/487/issue_layout
twitter:imagehttps://opengraph.githubassets.com/50aab6bc9de1b542e802494cdb7a9d568b296c0ff7277a8a513f0fbd9636e4c2/triggerdotdev/trigger.dev/issues/487
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/50aab6bc9de1b542e802494cdb7a9d568b296c0ff7277a8a513f0fbd9636e4c2/triggerdotdev/trigger.dev/issues/487
og:image:altProvide environment information System: OS: Linux 6.1 Manjaro Linux CPU: (16) x64 Intel(R) Core(TM) i7-10870H CPU @ 2.20GHz Memory: 20.98 GB / 31.13 GB Container: Yes Shell: 5.1.16 - /bin/bash Bina...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSlyracoon23
hostnamegithub.com
expected-hostnamegithub.com
None9d9bd51a568909a83d1abb9d6f74d68f0c87ca85fe3a56d3f5d70d8b89add9f2
turbo-cache-controlno-preview
go-importgithub.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git
octolytics-dimension-user_id95297378
octolytics-dimension-user_logintriggerdotdev
octolytics-dimension-repository_id572570113
octolytics-dimension-repository_nwotriggerdotdev/trigger.dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id572570113
octolytics-dimension-repository_network_root_nwotriggerdotdev/trigger.dev
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
release4a7ae932999cc6d511008dbf980ff9efad2a31f7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/issues/487#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F487
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%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F487
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=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/487
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/487
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/487
triggerdotdevhttps://github.com/triggerdotdev
trigger.devhttps://github.com/triggerdotdev/trigger.dev
Codehttps://github.com/triggerdotdev/trigger.dev
Issues203 (203)https://github.com/triggerdotdev/trigger.dev/issues
Pull requests66 (66)https://github.com/triggerdotdev/trigger.dev/pulls
Discussionshttps://github.com/triggerdotdev/trigger.dev/discussions
Actionshttps://github.com/triggerdotdev/trigger.dev/actions
Projectshttps://github.com/triggerdotdev/trigger.dev/projects
Security and quality39 (39)https://github.com/triggerdotdev/trigger.dev/security
Insightshttps://github.com/triggerdotdev/trigger.dev/pulse
https://github.com/triggerdotdev/trigger.dev
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/487
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/487
#500https://github.com/triggerdotdev/trigger.dev/pull/500
bug: Type Instantiation is excessively deep Error when Defining a Job schema with eventTriggerhttps://github.com/triggerdotdev/trigger.dev/issues/487#top
#500https://github.com/triggerdotdev/trigger.dev/pull/500
area/integrationshttps://github.com/triggerdotdev/trigger.dev/issues?q=state%3Aopen%20label%3A%22area%2Fintegrations%22
area/serverIssues related to the Trigger.dev serverhttps://github.com/triggerdotdev/trigger.dev/issues?q=state%3Aopen%20label%3A%22area%2Fserver%22
bugSomething isn't workinghttps://github.com/triggerdotdev/trigger.dev/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/Slyracoon23
Slyracoon23https://github.com/Slyracoon23
on Sep 18, 2023https://github.com/triggerdotdev/trigger.dev/issues/487#issue-1900766921
bugSomething isn't workinghttps://github.com/triggerdotdev/trigger.dev/issues?q=state%3Aopen%20label%3A%22bug%22
on Sep 18, 2023https://github.com/triggerdotdev/trigger.dev/issues/487#event-10396930405
area/serverIssues related to the Trigger.dev serverhttps://github.com/triggerdotdev/trigger.dev/issues?q=state%3Aopen%20label%3A%22area%2Fserver%22
on Sep 18, 2023https://github.com/triggerdotdev/trigger.dev/issues/487#event-10396930416
area/integrationshttps://github.com/triggerdotdev/trigger.dev/issues?q=state%3Aopen%20label%3A%22area%2Fintegrations%22
on Sep 18, 2023https://github.com/triggerdotdev/trigger.dev/issues/487#event-10396930429
https://github.com/Chigala
Chigalahttps://github.com/Chigala
on Sep 18, 2023https://github.com/triggerdotdev/trigger.dev/issues/487#issuecomment-1723273109
ericallam/t3-trigger-app#1https://github.com/ericallam/t3-trigger-app/pull/1
ericallamhttps://github.com/ericallam
completedhttps://github.com/triggerdotdev/trigger.dev/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#500https://github.com/triggerdotdev/trigger.dev/pull/500
on Sep 22, 2023https://github.com/triggerdotdev/trigger.dev/issues/487#event-10451585076
Sign up for freehttps://github.com/signup?return_to=https://github.com/triggerdotdev/trigger.dev/issues/487
Sign in to commenthttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/487
area/integrationshttps://github.com/triggerdotdev/trigger.dev/issues?q=state%3Aopen%20label%3A%22area%2Fintegrations%22
area/serverIssues related to the Trigger.dev serverhttps://github.com/triggerdotdev/trigger.dev/issues?q=state%3Aopen%20label%3A%22area%2Fserver%22
bugSomething isn't workinghttps://github.com/triggerdotdev/trigger.dev/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.