Support Forums

Can't add new lambda functions with cli


I’ve been struggling with delpoying new features to my site today.
When debugging I noticed it has nothing to do with the code or settings etc. It only has to do with having a new file in the lambda folder.
My last try was not to use any new but adding a copy of a long working file. That did not go thorugh.
I suspect it is the new Netlify build 5.0.2 that breaks the thing.
How can I use older Neltify build?

update! I was able to change the content of an old lambda file. Unfortunately I had only one extra file there, so I could add only one new function.

Hi @Mik-A,

Sorry to hear you are having trouble updating your site. Can you clarify what you mean by ‘netlify build 5.0.2’? Also, if your site’s repository is public, I can take a look and see if I can point you in the right direction to help you resolve your issue.

Thank your for your answer, Netlify build is something I read in the build log.
There is a line saying:
8:44:26 AM: ┌─────────────────────────────┐
8:44:26 AM: │ Netlify Build │
8:44:26 AM: └─────────────────────────────┘
8:44:26 AM: ​
8:44:26 AM: ❯ Version
8:44:26 AM: @netlify/build 5.0.3

this used to be 5.0.0 when it still worked. Nothing else really changed.

unfort our repo is private :frowning:

Looks like the latest version of @netlify/build is 5.2.1 (https://github.com/netlify/build). Can you try upgrading and see if that helps resolve your issue?