What's not working?
Since v8.8.0, I am receiving the following error when running yarn rw deploy serverless --stage dev --side api --pack-only. As a result, I am unable to upgrade as I cannot deploy the API side of the application.
...
[STARTED] Packing Functions...
[FAILED] Cannot read properties of undefined (reading 'cwd')
Cannot read properties of undefined (reading 'cwd')
I suspect the bug may have been introduced in #12063, since I see some changes that reference cwd in that PR.
How do we reproduce the bug?
yarn rw deploy serverless --stage dev --side api --pack-only
What's your environment? (If it applies)
sh-5.2# yarn rw info
System:
OS: Linux 6.10 Amazon Linux 2023
Shell: 5.2.15 - /bin/bash
Binaries:
Node: 20.19.4 - /tmp/xfs-dddf2f5e/node
Yarn: 3.2.3 - /tmp/xfs-dddf2f5e/yarn
npmPackages:
@redwoodjs/auth-custom-setup: 8.8.0 => 8.8.0
@redwoodjs/cli-data-migrate: 8.8.0 => 8.8.0
@redwoodjs/core: 8.8.0 => 8.8.0
redwood.toml:
[web]
title = "Banquet Health"
port = "${WEB_PORT:8999}"
apiUrl = "${API_URL:/api}" # Set API_URL in production to the Serverless deploy endpoint of your api service, see https://redwoodjs.com/docs/deploy/serverless-deploy
includeEnvironmentVariables = ['COGNITO_USER_POOL_ID', 'AWS_DEFAULT_REGION', 'COGNITO_OAUTH_DOMAIN', 'COGNITO_CLIENT_ID', 'APP_URL', 'DD_APP_ID', 'DD_CLIENT_TOKEN', 'ENVIRONMENT', 'DD_LOG_LOCAL', 'INTERCOM_APP_ID' ] # any ENV vars that should be available to the web side, see https://redwoodjs.com/docs/environment-variables#web
sourceMap = true
[api]
port = "${API_PORT:8911}"
[browser]
open = true
[graphql]
fragments = true
Are you interested in working on this?
What's not working?
Since
v8.8.0, I am receiving the following error when runningyarn rw deploy serverless --stage dev --side api --pack-only. As a result, I am unable to upgrade as I cannot deploy the API side of the application.I suspect the bug may have been introduced in #12063, since I see some changes that reference
cwdin that PR.How do we reproduce the bug?
yarn rw deploy serverless --stage dev --side api --pack-onlyWhat's your environment? (If it applies)
sh-5.2# yarn rw info System: OS: Linux 6.10 Amazon Linux 2023 Shell: 5.2.15 - /bin/bash Binaries: Node: 20.19.4 - /tmp/xfs-dddf2f5e/node Yarn: 3.2.3 - /tmp/xfs-dddf2f5e/yarn npmPackages: @redwoodjs/auth-custom-setup: 8.8.0 => 8.8.0 @redwoodjs/cli-data-migrate: 8.8.0 => 8.8.0 @redwoodjs/core: 8.8.0 => 8.8.0 redwood.toml: [web] title = "Banquet Health" port = "${WEB_PORT:8999}" apiUrl = "${API_URL:/api}" # Set API_URL in production to the Serverless deploy endpoint of your api service, see https://redwoodjs.com/docs/deploy/serverless-deploy includeEnvironmentVariables = ['COGNITO_USER_POOL_ID', 'AWS_DEFAULT_REGION', 'COGNITO_OAUTH_DOMAIN', 'COGNITO_CLIENT_ID', 'APP_URL', 'DD_APP_ID', 'DD_CLIENT_TOKEN', 'ENVIRONMENT', 'DD_LOG_LOCAL', 'INTERCOM_APP_ID' ] # any ENV vars that should be available to the web side, see https://redwoodjs.com/docs/environment-variables#web sourceMap = true [api] port = "${API_PORT:8911}" [browser] open = true [graphql] fragments = trueAre you interested in working on this?