Skip to content

bug: Cannot get final name for export 'SEMATTRS_HTTP_STATUS_CODE' #1547

Open
@rafalzawadzki

Description

@rafalzawadzki

Provide environment information

System:
OS: macOS 14.4
CPU: (12) arm64 Apple M2 Max
Memory: 1.51 GB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 21.4.0 - ~/.nvm/versions/node/v21.4.0/bin/node
Yarn: 1.22.21 - /opt/homebrew/bin/yarn
npm: 10.2.4 - ~/.nvm/versions/node/v21.4.0/bin/npm
pnpm: 9.14.2 - ~/Library/pnpm/pnpm
bun: 1.0.6 - ~/.bun/bin/bun

Describe the bug

After upgrading to @trigger.dev/[email protected] I started getting the following error when building a NextJS 14 project:

./node_modules/.pnpm/@[email protected][email protected]/node_modules/@trigger.dev/sdk/dist/esm/v3/retry.js + 6 modules
Cannot get final name for export 'SEMATTRS_HTTP_STATUS_CODE' of ./node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/semantic-conventions/build/esm/index.js
./node_modules/.pnpm/@[email protected][email protected]/node_modules/@trigger.dev/sdk/dist/esm/v3/retry.js + 6 modules
Cannot get final name for export 'SEMATTRS_HTTP_STATUS_CODE' of ./node_modules/.pnpm/@[email protected]/node_modules/@opentelemetry/semantic-conventions/build/esm/index.js

Downgrading back to @trigger.dev/[email protected] allows the build to complete successfully.

Reproduction repo

n/a

To reproduce

  1. Install @trigger.dev/[email protected]
  2. Create a task triggered in a Server Action
  3. Run pnpm build on [email protected] project

Additional information

I tried following suggestions in similar issues related to NextJS:

Adding the following to next.config.js:

serverComponentsExternalPackages: [
      '@trigger.dev',
      '@trigger.dev/sdk',
      '@opentelemetry',
      '@opentelemetry/semantic-conventions'
 ]

Unfortunately to no avail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions