Error deploy Cannot read properties of undefined (reading 'code') New VERSION 4.4

With the new version; I did a remove:

serverless remove

Note: CloudFornation is empty

And after every deploy is an error with these logs:

:heavy_multiplication_x: Stack lambda-hello-develop failed to deploy (4s)
s:main: Finishing
s:core:platform:deployments: saving service deployment record to the serverless platform
s:core:meta: saving meta record to global .serverless directory.
s:cli-error-handler: Cannot read properties of undefined (reading ‘code’)
TypeError: Cannot read properties of undefined (reading ‘code’)
at AwsDeploy.ensureValidBucketExists (/Users/mojicamarcumplo/.serverless/releases/4.3.3/serverless/lib/plugins/aws/deploy/lib/ensure-valid-bucket-exists.js:18:27)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at aws:deploy:deploy:checkForChanges (/Users/mojicamarcumplo/.serverless/releases/4.3.3/serverless/lib/plugins/aws/deploy/index.js:169:9)
at PluginManager.runHooks (/Users/mojicamarcumplo/.serverless/releases/4.3.3/serverless/lib/classes/plugin-manager.js:680:9)
at PluginManager.invoke (/Users/mojicamarcumplo/.serverless/releases/4.3.3/serverless/lib/classes/plugin-manager.js:719:9)
at PluginManager.spawn (/Users/mojicamarcumplo/.serverless/releases/4.3.3/serverless/lib/classes/plugin-manager.js:740:5)
at PluginManager.runHooks (/Users/mojicamarcumplo/.serverless/releases/4.3.3/serverless/lib/classes/plugin-manager.js:680:9)
at PluginManager.invoke (/Users/mojicamarcumplo/.serverless/releases/4.3.3/serverless/lib/classes/plugin-manager.js:719:9)
at PluginManager.run (/Users/mojicamarcumplo/.serverless/releases/4.3.3/serverless/lib/classes/plugin-manager.js:768:7)
at Serverless.run (/Users/mojicamarcumplo/.serverless/releases/4.3.3/serverless/lib/serverless.js:221:5)

:heavy_multiplication_x: Cannot read properties of undefined (reading ‘code’)
TypeError: Cannot read properties of undefined (reading ‘code’)
at AwsDeploy.ensureValidBucketExists (/Users/mojicamarcumplo/.serverless/releases/4.3.3/serverless/lib/plugins/aws/deploy/lib/ensure-valid-bucket-exists.js:18:27)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at aws:deploy:deploy:checkForChanges (/Users/mojicamarcumplo/.serverless/releases/4.3.3/serverless/lib/plugins/aws/deploy/index.js:169:9)
at PluginManager.runHooks (/Users/mojicamarcumplo/.serverless/releases/4.3.3/serverless/lib/classes/plugin-manager.js:680:9)
at PluginManager.invoke (/Users/mojicamarcumplo/.serverless/releases/4.3.3/serverless/lib/classes/plugin-manager.js:719:9)
at PluginManager.spawn (/Users/mojicamarcumplo/.serverless/releases/4.3.3/serverless/lib/classes/plugin-manager.js:740:5)
at PluginManager.runHooks (/Users/mojicamarcumplo/.serverless/releases/4.3.3/serverless/lib/classes/plugin-manager.js:680:9)
at PluginManager.invoke (/Users/mojicamarcumplo/.serverless/releases/4.3.3/serverless/lib/classes/plugin-manager.js:719:9)
at PluginManager.run (/Users/mojicamarcumplo/.serverless/releases/4.3.3/serverless/lib/classes/plugin-manager.js:768:7)
at Serverless.run (/Users/mojicamarcumplo/.serverless/releases/4.3.3/serverless/lib/serverless.js:221:5)

##################################################################
I am using a template of framwork
serverless.yml

“org” ensures this Service is used with the correct Serverless Framework Access Key.

org: cumplomx

“app” enables Serverless Framework Dashboard features and sharing them with other Services.

app: marco

“service” is the name of this project. This will also be added to your AWS resource names.

service: lambda-hello

provider:
name: aws
runtime: python3.12

functions:
hello:
handler: handler.hello

Can you post a minimal serverless.yml that replicates this ?

This is Serverless v4 ?

Yes is Serverless v4 .4 ; The weird is all my projects are happening after run this command: serverless remove

The framework does not create stack couldFormation.

This is:

org: cumplomx

app: marco

service: lambda-hello

provider:
name: aws
runtime: python3.12

functions:
hello:
handler: handler.hello

Glad it’s fixed.

Post must be at least 20 characters