kubeless quick-start guide giving error #241
Description
I followed the steps in the kubeless quickstart guide - https://www.serverless.com/framework/docs/providers/kubeless/guide/quick-start
I get the below error when I try to deploy the function
serverless-kubeless-project>serverless deploy function -f capitalize
Warning: You're relying on provider "kubeless" defined by a plugin which doesn't provide a validation schema for its config.
Please report the issue at its bug tracker linking: https://www.serverless.com/framework/docs/providers/aws/guide/plugins#extending-validation-schema
You may turn off this message with "configValidationMode: off" setting
Redeploying capitalize...
× Uncaught exception
Environment: win32, node 16.14.2, framework 3.10.2, plugin 6.2.1, SDK 4.3.2
Docs: docs.serverless.com
Support: forum.serverless.com
Bugs: github.com/serverless/serverless/issues
Error:
TypeError: Cannot read properties of undefined (reading 'artifact')
at KubelessDeployFunction.getPkg (C:\Programming\serverless\example\serverless-kubeless-project\node_modules\serverless-kubeless\deploy\kubelessDeploy.js:85:37)
at C:\Programming\serverless\example\serverless-kubeless-project\node_modules\serverless-kubeless\deploy\kubelessDeploy.js:111:28
at C:\Programming\serverless\example\serverless-kubeless-project\node_modules\lodash\lodash.js:4967:15
at baseForOwn (C:\Programming\serverless\example\serverless-kubeless-project\node_modules\lodash\lodash.js:3032:24)
at C:\Programming\serverless\example\serverless-kubeless-project\node_modules\lodash\lodash.js:4936:18
at Function.forEach (C:\Programming\serverless\example\serverless-kubeless-project\node_modules\lodash\lodash.js:9410:14)
at C:\Programming\serverless\example\serverless-kubeless-project\node_modules\serverless-kubeless\deploy\kubelessDeploy.js:110:11
at processTicksAndRejections (node:internal/process/task_queues:96:5)
1 deprecation found: run 'serverless doctor' for more details
This is my serverless.yaml file:
service: serverless-kubeless-project
frameworkVersion: '3'
provider:
name: kubeless
runtime: nodejs12
plugins:
- serverless-kubeless
functions:
capitalize:
handler: handler.capitalize