I’m a front-end developer and not very fancy on the server side. That being said, I spent some ten years managing my own Linux on DigitalOcean with WP blogs. When I say managing, it was more like doing some updates and maintenance only.
Then, I discovered SvelteKit, which was when I finally decided to go wild with my own blog.
So far, I am enjoying my ride until suddenly, after doing minor updates, I got this error on Vercel.
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
What is going on? All I did, was to change an image in one of the posts. I double checked, that there are no any changes in package nor lock files.
Luckily, after some discussion on Mastodon it hit me!
In my package.json I use
1 | |
2 | |
3 | |
I guess, Vercel some days ago added Node v.20 as well. So, it automatically build project with the latest Node and that broke the build.
For now I set it to version 18 like so
1 | |
2 | |
3 | |
Hopefully this will give a hint for somebody else for similar error in Vercel.