You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
running pnpm build from the monorep root fails inside type-safe-api with multiple errors ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL Cannot read properties of undefined
I first ran into the issue while attempting to develop a new feature within the baseline type-safe-api. Upon changing a source file (even as simple as adding an empty // comment to the end of a line, running pnpm build at the top level fails. This indeed happens any time there is a cache miss for the tpe-safe-api nx cloud cache. This can be observed in a fresh git (no changes) and running pnpm build --skip-nx-cache.
After some exploration, it seems that when working on a local machine, unless AWS_PDK_VERSION is explicitly set in the environment, the build will fail.
Expected Behavior
I expect a build to work out of the box.
Current Behavior
Without AWS_PDK_VERSION set, pnpm build eventually encounters multiple failures within type-safe-api in the general form of:
git clone git clone https://github.com/aws/aws-pdk.git
cd aws-pdk
pnpm i
pnpm build --skip-nx-cache
Build succeeds:
git clone git clone https://github.com/aws/aws-pdk.git
cd aws-pdk
pnpm i
AWS_PDK_VERSION=0.23.47 pnpm build --skip-nx-cache
Possible Solution
It's unclear if this is an issue with packages/type-safe-api/scripts/type-safe-api/common/common.sh, or if it is the documentation in docs/content/contributing/index.md that lacks clear instructions on the correct way to build when contributing to the type-safe-api package.
Additional Information/Context
No response
PDK version used
0.23.46, 0.23.47
What languages are you seeing this issue on?
No response
Environment details (OS name and version, etc.)
Ubuntu 22.04
The text was updated successfully, but these errors were encountered:
I cleaned my ~/.pdk directory before cloning and building the repo - AWS_PDK_VERSION being unset means it creates a directory named ~/.pdk/type-safe-api rather than the usual ~/.pdk/$AWS_PDK_VERSION/type-safe-api etc, but the build still succeeds. My first guess was could it be the double / when it tries to mkdir ~/.pdk//type-safe-api, but it seems like it's pretty standard for posix to treat multiple slashes as a single one.
I wonder if you've had a chance to look into this any further?
Describe the bug
running
pnpm build
from the monorep root fails inside type-safe-api with multiple errorsERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL Cannot read properties of undefined
I first ran into the issue while attempting to develop a new feature within the baseline type-safe-api. Upon changing a source file (even as simple as adding an empty
//
comment to the end of a line, runningpnpm build
at the top level fails. This indeed happens any time there is a cache miss for the tpe-safe-api nx cloud cache. This can be observed in a fresh git (no changes) and runningpnpm build --skip-nx-cache
.After some exploration, it seems that when working on a local machine, unless
AWS_PDK_VERSION
is explicitly set in the environment, the build will fail.Expected Behavior
I expect a build to work out of the box.
Current Behavior
Without
AWS_PDK_VERSION
set,pnpm build
eventually encounters multiple failures within type-safe-api in the general form of:Reproduction Steps
Build fails:
Build succeeds:
Possible Solution
It's unclear if this is an issue with
packages/type-safe-api/scripts/type-safe-api/common/common.sh
, or if it is the documentation indocs/content/contributing/index.md
that lacks clear instructions on the correct way to build when contributing to the type-safe-api package.Additional Information/Context
No response
PDK version used
0.23.46, 0.23.47
What languages are you seeing this issue on?
No response
Environment details (OS name and version, etc.)
Ubuntu 22.04
The text was updated successfully, but these errors were encountered: