-
-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Cannot get final name for export 'SEMATTRS_HTTP_STATUS_CODE' #1547
Comments
@rafalzawadzki Is this happening in a monorepo, or just a regular repo? Do you possibly have code that reproduces this? I'm unable to myself so far. |
Same here - any resolutions? |
@ericallam it's a standard Next repo (not monorepo, no turbo etc) unfortunately can't provide the code @techjason downgrading trigger was the workaround for now |
@rafalzawadzki I'm guessing in the "To reproduce" steps above you meant to say "Install @techjason any chance you have a repo that can reproduce this? Could you provide any more details on your stack? |
+1 same issue here on the following version on a nextjs application
|
@ming1in any chance you could share a minimal repo that reproduces this? |
Okay I've managed to reproduce this bug and here's what I found: Between 14.0.0 and 14.2.7, there is a Next.js build issue that can occur in certain circumstances:
This will (for some reason) cause builds to fail with the above error (or one very similar). There are two fixes I've found so far for this:
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
// Add this line to fix the "Cannot get final name for export" error
// Alternatively, you can upgrade to Next.js 14.2.8 or later
serverComponentsExternalPackages: ["@trigger.dev/sdk"],
},
};
export default nextConfig; |
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:Downgrading back to
@trigger.dev/[email protected]
allows the build to complete successfully.Reproduction repo
n/a
To reproduce
@trigger.dev/[email protected]
pnpm build
on[email protected]
projectAdditional information
I tried following suggestions in similar issues related to NextJS:
Adding the following to
next.config.js
:Unfortunately to no avail.
The text was updated successfully, but these errors were encountered: