n8n
n8n copied to clipboard
Cannot build n8n - No file was found to copy on packages/editor-ui/node_modules/web-tree-sitter
Bug Description
I Cannot build the latest version of n8n. issue seem to be with the web-tree-sitter library.
getting the following error:
n8n-editor-ui:build: error during build:
n8n-editor-ui:build: [vite-plugin-static-copy:build] No file was found to copy on C:\Dev\Kob490\n8n\packages\editor-ui\node_modules\web-tree-sitter\tree-sitter.wasm src.
n8n-editor-ui:build: at collectCopyTargets (file:///C:/Dev/Kob490/n8n/node_modules/.pnpm/[email protected][email protected]_@[email protected][email protected][email protected][email protected]_/node_modules/vite-plugin-static-copy/dist/index.js:512:13)
n8n-editor-ui:build: at async copyAll (file:///C:/Dev/Kob490/n8n/node_modules/.pnpm/[email protected][email protected]_@[email protected][email protected][email protected][email protected]_/node_modules/vite-plugin-static-copy/dist/index.js:577:23)
n8n-editor-ui:build: at async Object.writeBundle (file:///C:/Dev/Kob490/n8n/node_modules/.pnpm/[email protected][email protected]_@[email protected][email protected][email protected][email protected]_/node_modules/vite-plugin-static-copy/dist/index.js:1105:22)
n8n-editor-ui:build: at async Promise.all (index 0)
n8n-editor-ui:build: at async PluginDriver.hookParallel (file:///C:/Dev/Kob490/n8n/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:20658:9)
n8n-editor-ui:build: at async file:///C:/Dev/Kob490/n8n/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:21695:13
n8n-editor-ui:build: at async catchUnfinishedHookActions (file:///C:/Dev/Kob490/n8n/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:21076:16)
n8n-editor-ui:build: at async buildEnvironment (file:///C:/Dev/Kob490/n8n/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-A4nAWF7x.js:50580:16)
n8n-editor-ui:build: at async Object.defaultBuildApp [as buildApp] (file:///C:/Dev/Kob490/n8n/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-A4nAWF7x.js:51011:5)
n8n-editor-ui:build: at async CAC.<anonymous> (file:///C:/Dev/Kob490/n8n/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/cli.js:852:7)
n8n-editor-ui:build: ELIFECYCLE Command failed with exit code 1.
n8n-editor-ui:build: ERROR: command finished with error: command (C:\Dev\Kob490\n8n\packages\editor-ui) C:\Users\Koby\.nvm\versions\node\v20.18.2\bin\pnpm.cmd run build exited (1)
n8n-editor-ui#build: command (C:\Dev\Kob490\n8n\packages\editor-ui) C:\Users\Koby\.nvm\versions\node\v20.18.2\bin\pnpm.cmd run build exited (1)
Tasks: 18 successful, 19 total
Cached: 18 cached, 19 total
Time: 2m18.884s
Failed: n8n-editor-ui#build
ERROR run failed: command exited (1)
ELIFECYCLE Command failed with exit code 1.
I'm Working on a windows system and a Bash terminal. I made sure the /node_modules/web-tree-sitter/tree-sitter.wasm file exists so not sure what it happening.
To Reproduce
- Clear your n8n library and node module
- Run pnpm install
- Run pnpm build
Expected behavior
n8n should build succesfully.
Operating System
Windows 11
n8n Version
1.78.0
Node.js Version
20.18.2
Database
SQLite (default)
Execution mode
main (default)