Error on updating and deploying old projects


I am trying to update an old serverless function with a more latest node/python version. I am getting an error.

“Error response from daemon: repository not found: name unknown: The repository with name ‘build-undefined’ does not exist in the registry with id ‘sam’.”

Any input will be greatly appreciated.