Skip to content
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

Cannot read properties of undefined (reading 'concat') when include #50

Open
chowks opened this issue Jan 13, 2024 · 2 comments
Open

Cannot read properties of undefined (reading 'concat') when include #50

chowks opened this issue Jan 13, 2024 · 2 comments

Comments

@chowks
Copy link

chowks commented Jan 13, 2024

Encounter error below when I am trying to include a binary into a function. Or did i miss out something

Error:

✖ Stack failed to deploy (125s)
Environment: linux, node 18.16.0, framework 3.38.0 (local), plugin 7.2.0, SDK 4.5.1
Credentials: Local, "default" profile
Docs:        docs.serverless.com
Support:     forum.serverless.com
Bugs:        github.com/serverless/serverless/issues

Error:
TypeError: Cannot read properties of undefined (reading 'concat')
    at Plugin.compile (/home/node_modules/serverless-go-plugin/index.js:155:53)
    at async /home/node_modules/serverless-go-plugin/index.js:85:9
    at async /home/node_modules/p-map/index.js:57:15

serverless.yml:

provider:
  name: aws
  architecture: arm64
  runtime: provided.al2023

go:
    supportedRuntimes: ["provided.al2023"]
    buildProvidedRuntimeAsBootstrap: true
    cmd: GOARCH=arm64 GOOS=linux go build -tags lambda.norpc -ldflags="-s -w"
functions:
  my-function:
    handler: ./newhandlers/my_function
     package:
       include:
         - scripts/wkhtmltopdf
@chowks
Copy link
Author

chowks commented Jan 13, 2024

not sure if is related to this

#49

@chowks
Copy link
Author

chowks commented Jan 22, 2024

Hi @mthenw , could you kindly review this issue? Thank you very much for your time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant