-
Notifications
You must be signed in to change notification settings - Fork 230
Doesn't support new Docker image
syntax
#227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
If you've found this issue from a search engine, a (less-than-ideal) solution I've used for deployment is to create a separate |
Sorry, I found this issue by search... and I was doing, presumably, exactly what you said, yet, this not working for me: Test based on example (which is awfully outdated).
service: serverless-example
frameworkVersion: "2 || 3"
plugins:
- serverless-plugin-typescript
provider:
name: aws
# runtime: nodejs14.x
ecr:
images:
appimage:
path: ./
region: eu-west-2
lambdaHashingVersion: 20201221
functions:
hello:
# handler: handler.hello
image:
name: appimage
events:
- http:
path: hello
method: get Then: $ sls deploy -s test -c serverlessD.yml
Serverless: Compiling with Typescript...
Type Error ----------------------------------------------
TypeError: Cannot read property 'split' of undefined
... What am I doing wrong please? |
still happening anyone have work around? |
Add a specific |
Any luck resolving this issue running into it myself now, switching from a handler to image. |
Has any progress been made on this? |
Trying in 2024 and the error seems to still be present |
I have the same error here when defining a function that uses |
@douglasgsouza I was able to deploy my app by removing the plugin from my project and building it with tsc |
As per https://www.serverless.com/blog/container-support-for-lambda, you can now use the
image
property in function instead of ahandler
.Error
is thrown at https://github.com/prisma-labs/serverless-plugin-typescript/blob/master/src/typescript.ts#L51 because it expects a
handler
property to be defined.Required if you have (like I do) a mix of typescript handlers and Docker images in the same application.
The text was updated successfully, but these errors were encountered: