Building local instance with errors in task runner

Describe the problem/error/question

I have a local development env which was working fine until version 1.75.3 but when I try to use a newer version of n8n I always get this error bellow. I’ve already try to remove node_modules and install everything but always remains the same message. I’ve tried to build individually and when I try to build pnpm run build --filter @n8n/task-runner the same error.

So could you help me on how to debug it? Thanks!

What is the error message (if any)?

n8n-nodes-base:build: 
n8n-nodes-base:build: > [email protected] build /Users/rodrigogomescorreia/usuario/private/repos/n8n-repo/packages/nodes-base
n8n-nodes-base:build: > tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && pnpm n8n-copy-static-files && pnpm n8n-generate-translations && pnpm n8n-generate-metadata
n8n-nodes-base:build: 
@n8n/chat:build: 
@n8n/chat:build: > @n8n/[email protected] build:vite /Users/rodrigogomescorreia/usuario/private/repos/n8n-repo/packages/@n8n/chat
@n8n/chat:build: > cross-env vite build
@n8n/chat:build: 
@n8n/task-runner:build: src/task-runner.ts:1:10 - error TS2305: Module '"n8n-core"' has no exported member 'isSerializedBuffer'.
@n8n/task-runner:build: 
@n8n/task-runner:build: 1 import { isSerializedBuffer, toBuffer } from 'n8n-core';
@n8n/task-runner:build:            ~~~~~~~~~~~~~~~~~~
@n8n/task-runner:build: 
@n8n/task-runner:build: src/task-runner.ts:1:30 - error TS2305: Module '"n8n-core"' has no exported member 'toBuffer'.
@n8n/task-runner:build: 
@n8n/task-runner:build: 1 import { isSerializedBuffer, toBuffer } from 'n8n-core';
@n8n/task-runner:build:                                ~~~~~~~~
@n8n/task-runner:build: 
@n8n/task-runner:build: 
@n8n/task-runner:build: Found 2 errors in the same file, starting at: src/task-runner.ts:1
@n8n/task-runner:build: 
@n8n/task-runner:build:  ELIFECYCLE  Command failed with exit code 2.
@n8n/task-runner:build: ERROR: command finished with error: command (/Users/rodrigogomescorreia/usuario/private/repos/n8n-repo/packages/@n8n/task-runner) /Users/rodrigogomescorreia/.nvm/versions/node/v20.18.3/bin/pnpm run build exited (2)
@n8n/chat:build: 
@n8n/chat:build: > @n8n/[email protected] build:bundle /Users/rodrigogomescorreia/usuario/private/repos/n8n-repo/packages/@n8n/chat
@n8n/chat:build: > cross-env INCLUDE_VUE=true vite build
@n8n/chat:build: 
@n8n/task-runner#build: command (/Users/rodrigogomescorreia/usuario/private/repos/n8n-repo/packages/@n8n/task-runner) /Users/rodrigogomescorreia/.nvm/versions/node/v20.18.3/bin/pnpm run build exited (2)

 Tasks:    13 successful, 17 total
Cached:    13 cached, 17 total
  Time:    2.313s 
Failed:    @n8n/task-runner#build

 ERROR  run failed: command  exited (2)
 ELIFECYCLE  Command failed with exit code 2.

Share the output returned by the last node

Information on your n8n setup

  • 1.79.1
  • Database Postgres
  • n8n EXECUTIONS_PROCESS setting queue:
  • Running n8n via npm:
  • Mac OS M chips

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

pnpm build --filter does not rebuild dependencies. Try to rebuild the entire repo again, or try building n8n-core first.
You could also try pnpm reset to rebuild everything completely from scratch.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.