There was an error when using a custom build image with gitlab-runner

Describe the problem/error/question

When running “pnpm run build”, the node process threw a blocking issue.

I suspect it’s related to the recent attempt by the n8n team to upgrade tsdown / rolldown-vite. There have been some path resolution issues reported in the community on Linux environments, and I’m not sure if this is the same problem.

Steps to reproduce:

  1. Prepare a CentOS Linux / node:22-alpine environment (I’ve tested on macOS/Windows and there is no issue there).

  2. Pull the latest code.

  3. Run: pnpm install --frozen-lockfile

  4. Try to build with: pnpm build (this throws an error).

What is the error message (if any)?

@n8n/extension-sdk:build:  ERROR  Error: [UNHANDLEABLE_ERROR] Error: Something went wrong inside rolldown, please report this problem at https://github.com/rolldown/rolldown/issues.
@n8n/extension-sdk:build: Failed to resolve `tsconfig` option: /builds/fe-platform/fe-test/n8n/packages/@n8n/extension-sdk/tsconfig.common.json
@n8n/extension-sdk:build: 
@n8n/extension-sdk:build: 
@n8n/extension-sdk:build:  ELIFECYCLE  Command failed with exit code 1.
@n8n/extension-sdk:build: ERROR: command finished with error: command (/builds/fe-platform/fe-test/n8n/packages/@n8n/extension-sdk) /usr/local/bin/pnpm run build exited (1)
n8n-workflow:build:  ELIFECYCLE  Command failed.
@n8n/eslint-config:build:  ELIFECYCLE  Command failed.
@n8n/json-schema-to-zod:build:  ELIFECYCLE  Command failed.
@n8n/eslint-plugin-community-nodes:build:  ELIFECYCLE  Command failed.
@n8n/json-schema-to-zod:build:  ELIFECYCLE  Command failed.
@n8n/extension-sdk#build: command (/builds/fe-platform/fe-test/n8n/packages/@n8n/extension-sdk) /usr/local/bin/pnpm run build exited (1)
 Tasks:    12 successful, 17 total
Cached:    0 cached, 17 total
  Time:    6.353s 
Failed:    @n8n/extension-sdk#build
 ERROR  run failed: command  exited (1)
 ELIFECYCLE  Command failed with exit code 1.

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

The error you’re seeing during the build process, specifically with `rolldown`, is likely related to the path resolution issues that have been reported. Since you’re using a CentOS Linux environment, this aligns with the reported problems. You could try checking the `tsconfig.common.json` file path in your build configuration to ensure it’s correctly referencing the necessary files. If that doesn’t work, consider checking the `rolldown` issue tracker on GitHub for potential solutions or workarounds.

I’ve solved it. The problem was caused by an outdated Linux version on the server used for the build process. Upgrading the Linux kernel resolved the issue and the build succeeded.

Nice! Congrats!