bug: [ResolveMessage: Cannot find package '#fingerprint' imported from /var/task/node_modules/.pnpm/@[email protected]/node_modules/@bugsnag/cuid/index.esm.mjs]

未关闭
#5,082 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
22/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
bun, node.js, typescript
领域
build-system

调研方向

There is no reproduction inside the repo yet, so start by building a minimal Hono + @trigger.dev/sdk project with @trigger.dev/build and deploying to Vercel through bun/pnpm to confirm the failure. The message shows the #fingerprint subpath import in @bugsnag/cuid's ESM entry failing to resolve at bundle time, so look at how the build extension externalizes or bundles dependencies for Vercel. Done means a documented cause plus a fix or workaround so the deploy no longer throws the ResolveMessage.

由索引模型根据 Issue 内容生成。

描述

Provide environment information

The issue came after i added trigger sdk to my Hono (bun runtime) project which is hosted at vercel.

Image

Error:
[ResolveMessage: Cannot find package '#fingerprint' imported from /var/task/node_modules/.pnpm/@[email protected]/node_modules/@bugsnag/cuid/index.esm.mjs]

My machine:

  System:
    OS: macOS 26.5.2
    CPU: (8) arm64 Apple M1
    Memory: 152.31 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Yarn: 1.22.22 - /Users/akshayjumbade/Library/Application Support/Herd/config/nvm/versions/node/v24.21.0/bin/yarn
    npm: 11.19.0 - /Users/akshayjumbade/Library/Application Support/io.yerd.Yerd/bin/npm
    pnpm: 12.15.0 - /Users/akshayjumbade/Library/pnpm/bin/pnpm
    bun: 1.4.0 - /Users/akshayjumbade/.bun/bin/bun
{
   "name": "hono",
   "type": "module",
   "scripts": {
      "dev": "bun run --hot src/index.ts",
      "dev:trigger": "trigger dev",
      "deploy:trigger": "trigger deploy --env prod"
   },
   "dependencies": {
      "@aws-sdk/client-s3": "^3.1128.0",
      "@aws-sdk/s3-request-presigner": "^3.1128.0",
      "@hono/zod-validator": "^0.9.0",
      "@modelcontextprotocol/sdk": "^1.30.0",
      "@neondatabase/serverless": "^1.2.0",
      "@opentelemetry/api": "^1.9.1",
      "@trigger.dev/sdk": "4.8.1",
      "@upstash/redis": "^1.38.4",
      "drizzle-kit": "^0.31.10",
      "drizzle-orm": "^0.45.2",
      "hono": "^4.13.5",
      "resend": "^6.32.0",
      "valibot": "^1.4.2",
      "zod": "^4.5.2"
   },
   "devDependencies": {
      "@trigger.dev/build": "^4.8.1",
      "@types/bun": "^1.4.0",
      "bun-types": "^1.4.0",
      "drizzle-seed": "^0.3.1",
      "tsx": "^4.23.12",
      "typescript": "6"
   },
   "version": "dev"
}

Describe the bug

The issue came after i added trigger sdk to my Hono (bun runtime) project which is hosted at vercel.

Image

Error:
[ResolveMessage: Cannot find package '#fingerprint' imported from /var/task/node_modules/.pnpm/@[email protected]/node_modules/@bugsnag/cuid/index.esm.mjs]

Reproduction repo

Create a simple project with hono and trigger sdk with bun runtime and deploy on vercel.

To reproduce

Create a simple project with hono and trigger sdk with bun runtime and deploy on vercel.

Suggested fix

No response

Additional information

No response

主要语言
TypeScript
星标
16.5k
派生
1.5k
平均合并
1 天 15 小时
30 天内合并 PR
17

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

triggerdotdev/trigger.dev 的其他 Issue

查看 triggerdotdev/trigger.dev 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。