Skip to content

fix: use barrel import for email package (Trigger build fix)#2511

Merged
tofikwest merged 1 commit intomainfrom
fix/email-unsubscribe-import
Apr 10, 2026
Merged

fix: use barrel import for email package (Trigger build fix)#2511
tofikwest merged 1 commit intomainfrom
fix/email-unsubscribe-import

Conversation

@claudfuen
Copy link
Copy Markdown
Contributor

Summary

Fixes Trigger.dev deploy failure caused by deep path import @trycompai/email/lib/unsubscribe which resolves to source .ts files that esbuild can't find in dist/. Uses barrel import from @trycompai/email instead.

Error

Could not read from file: /runner/_work/comp/comp/packages/email/dist/lib/unsubscribe/index.js

🤖 Generated with Claude Code

Deep path import @trycompai/email/lib/unsubscribe resolves to
source .ts files which Trigger's esbuild can't find in dist/.
Use barrel import from @trycompai/email instead.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
comp-framework-editor Ready Ready Preview, Comment Apr 10, 2026 7:54pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
app Skipped Skipped Apr 10, 2026 7:54pm
portal Skipped Skipped Apr 10, 2026 7:54pm

Request Review

@cursor
Copy link
Copy Markdown

cursor bot commented Apr 10, 2026

PR Summary

Low Risk
Low risk import-path change to avoid Trigger/esbuild build failures; runtime behavior should be unchanged aside from relying on the package’s public export surface.

Overview
Switches generateUnsubscribeToken imports in the API unsubscribe controller and Trigger email task from the deep path @trycompai/email/lib/unsubscribe to the barrel export @trycompai/email to fix build/deploy resolution issues.

Reviewed by Cursor Bugbot for commit b165a18. Bugbot is set up for automated code reviews on this repo. Configure here.

@tofikwest tofikwest merged commit 3f530b7 into main Apr 10, 2026
11 checks passed
@tofikwest tofikwest deleted the fix/email-unsubscribe-import branch April 10, 2026 20:10
@claudfuen
Copy link
Copy Markdown
Contributor Author

🎉 This PR is included in version 3.21.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants