We are selfhosting n8n. And we started migrating from v212 to 218.0. I deleted the node modules directory and ran pnpm install followed by pnpm build. But it fails throwing the below error that is related to typescript version 4.9.4. All our codebase uses 4.9.5
## Information on your n8n setup
- **n8n version:** 0.218.0
- **Database you're using (default: SQLite):** postgres
- **Running n8n with the execution process [own(default), main]:**
- **Running n8n via [Docker, npm, n8n.cloud, desktop app]:** Docker Compose
I created a branch that tracks our n8n master branch (git checkout --track -b <br_name> origin/master). Then pulled the code from it. Now at the root directory, I ran
rm -rf node_modules
pnpm install
pnpm build
Note : I may do some silly error here. But it worked fine until 217.2. And once I upgrade to 218 or pulled the current master it fails.
Since we render n8n in a iframe, except for some styling changes in ui, all other code are same. Hence we build a custom image . I will try the approach suggested by you and will provide an update soon.