Deploy the APIs

If anyone faces this issue:

I did serverless deploy --verbose and kept getting the following error:

Serverless: 
WARNING: Entry for resources@undefined could not be retrieved.
Please check your service config if you want to use lib.entries.
Serverless: Removing /Users/prashanth/Development/Apps/scratch-that/scratch-that-api/.webpack
Serverless: Using multi-compile (individual packaging)
Unhandled rejection TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
    at assertPath (path.js:39:11)
    at Object.relative (path.js:1171:5) 

In the previous chapter, we added CORS to API gateway and referenced that file in serverless.yml.

I accidentally indented resources by one space. I un-indented it and bam it deployed :slight_smile:

1 Like