Trying to get started developing but `pnpm build` fails

Describe the issue/error/question

Trying to run pnpm build but it fails from master – seems to be related to n8n-workflow specifically

What is the error message (if any)?

(env-16.17.0) ➜  n8n git:(master) pnpm build

> [email protected] build /Users/marks/Code/n8n
> turbo run build

• Packages in scope: @n8n_io/eslint-config, n8n, n8n-core, n8n-design-system, n8n-editor-ui, n8n-node-dev, n8n-nodes-base, n8n-workflow
• Running build in 8 packages
• Remote caching disabled
n8n-design-system:build: cache miss, executing ec98dc569f41558f
n8n-workflow:build: cache miss, executing 961205b175ebedb1
n8n-workflow:build: > [email protected] build /Users/marks/Code/n8n/packages/workflow
n8n-workflow:build: > tsc -p
n8n-design-system:build: > [email protected] build /Users/marks/Code/n8n/packages/design-system
n8n-design-system:build: > vite build
n8n-design-system:build: vite v4.0.4 building for production...
n8n-design-system:build: transforming...
n8n-workflow:build: src/Interfaces.ts(4,32): error TS7016: Could not find a declaration file for module 'form-data'. '/Users/marks/Code/n8n/node_modules/form-data/lib/form_data.js' implicitly has an 'any' type.
n8n-workflow:build:   If the 'form-data' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module 'form-data';`
n8n-workflow:build:  ELIFECYCLE  Command failed with exit code 2.
n8n-workflow:build: ERROR: command finished with error: command (/Users/marks/Code/n8n/packages/workflow) pnpm run build exited (1)
n8n-design-system:build:  ELIFECYCLE  Command failed.
command (/Users/marks/Code/n8n/packages/workflow) pnpm run build exited (1)

 Tasks:    0 successful, 1 total
Cached:    0 cached, 1 total
  Time:    1.202s 

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

Information on your n8n setup

  • n8n version: master
  • Database you’re using (default: SQLite): sqlite
  • Running n8n with the execution process [own(default), main]: own
  • Running n8n via [Docker, npm,, desktop app]: pnpm

Hmm, sorry for the potential false alarm. I blew away my local directory and re-ran pnpm install and pnpm build and it seems to work now :thinking:

1 Like

Awesome, thanks so much for confirming!

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