Open
Description
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
- Install
@trigger.dev/[email protected]
- Create a task triggered in a Server Action
- Run
pnpm build
on[email protected]
project
Additional information
I tried following suggestions in similar issues related to NextJS:
- Build error "Cannot get final name for export '<export_name>'" when using server actions a certain way vercel/next.js#60807
- Cannot get final name for export 'EndpointURLScheme' aws/aws-sdk-js-v3#5488
Adding the following to next.config.js
:
serverComponentsExternalPackages: [
'@trigger.dev',
'@trigger.dev/sdk',
'@opentelemetry',
'@opentelemetry/semantic-conventions'
]
Unfortunately to no avail.
Metadata
Metadata
Assignees
Labels
No labels