Error on updating and deploying old projects

Hi,

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 public.ecr.aws/sam/build-undefined 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.

Thanks