I’m using
Node v10.17.0
NPM 6.11.3
My serverless framework info is the following:
Framework Core: 2.43.0
Plugin: 5.1.3
SDK: 4.2.2
Components: 3.10.0
My serverless.yml file has the following:
# NOTE: update this with your service name
service: notes-api
# Create an optimized package for our functions
package:
individually: true
plugins:
- serverless-bundle # Package our functions with Webpack
- serverless-offline
- serverless-dotenv-plugin # Load .env as environment variables
provider:
name: aws
runtime: nodejs10.x
stage: dev
region: ap-southeast-1
# To load environment variables externally
# rename env.example to .env and uncomment
# the following line. Also, make sure to not
# commit your .env.
#
#environment:
# SAMPLE_ENV_VAR: ${env:SAMPLE_ENV_VAR}
functions:
hello:
handler: handler.hello
events:
- http:
path: hello
method: get
My package json looks like this:
{
"name": "notes-api",
"version": "2.2.0",
"description": "A Node.js starter for Serverless Framework with ES6 and TypeScript support",
"main": "handler.js",
"scripts": {
"test": "serverless-bundle test"
},
"author": "",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/AnomalyInnovations/serverless-nodejs-starter.git"
},
"devDependencies": {
"aws-sdk": "^2.912.0",
"serverless-bundle": "4.3.1",
"serverless-dotenv-plugin": "^2.1.1",
"serverless-offline": "^5.3.3"
},
"dependencies": {
"uuid": "^8.3.2"
}
}
This is based on the tutorial at serverless-stack.com
Whenever i run any command: i get the following error:
eprecation warning: CLI options definitions were upgraded with “type” property (which could be one of “string”, “boolean”, “multiple”). Below listed plugins do not predefine type for introduced options:
- ServerlessPlugin for “out”
- ServerlessOffline for “apiKey”, “binPath”, “cacheInvalidationRegex”, “corsAllowHeaders”, “corsAllowOrigin”, “corsDisallowCredentials”, “corsExposedHeaders”, “disableCookieValidation”, “enforceSecureCookies”, “exec”, “hideStackTraces”, “host”, “httpsProtocol”, “location”, “noAuth”, “noEnvironment”, “port”, “prefix”, “preserveTrailingSlash”, “printOutput”, “providedRuntime”, “region”, “resourceRoutes”, “showDuration”, “skipCacheInvalidation”, “stage”, “useSeparateProcesses”, “websocketPort”
Please report this issue in plugin issue tracker.
Starting with next major release, this will be communicated with a thrown error.
More Info: Serverless Framework Deprecations
Serverless: Deprecation warning: Resolution of lambda version hashes was improved with better algorithm, which will be used in next major release.
Switch to it now by setting “provider.lambdaHashingVersion” to “20201221”
I really wish error messages were more human. Does anyone know what this means?