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 }}
Repository navigation
Missing export tasks from @trigger.dev/sdk/v3 #1454
This is happening because of our new browser export condition that doesn't export some things that aren't compatible with browsers, but apparently this is effecting edge runtimes (I'm guessing that bundle with the "browser" custom condition but have not confirmed this.
We should export more from the browser export, especially the tasks export, but currently it's not so simple because it will pull in stuff that isn't compatible (opentelemetry).
If we added a "workerd" or "worker" condition that exports the same as the "default" export then this would probably fix the issue for CF workers. I'm guessing we could do a similar thing for Vercel Edge functions
Activity
ericallam commentedon Nov 1, 2024
A list of runtime keys: https://runtime-keys.proposal.wintercg.org/#workerd
ericallam commentedon Nov 1, 2024
Yup, looks like Cloudflare workers will bundle with the "browser" condition:
https://github.com/cloudflare/workers-sdk/blob/3ee1353d317c0e137a14f3091b32eecd575cc7a4/packages/wrangler/src/deployment-bundle/bundle.ts#L56
If we added a "workerd" or "worker" condition that exports the same as the "default" export then this would probably fix the issue for CF workers. I'm guessing we could do a similar thing for Vercel Edge functions