[BUG] post-compile ยป docgen | jsii-docgen -o API.md fails due to missing dependencies
sociengineer opened this issue ยท 2 comments
Describe the bug
build fails at 'post-compile ยป docgen | jsii-docgen -o API.md' due to missing dependencies. such as zod-to-json-schema, zod, yaml and so on.
@aws/galileo-cdk: ๐พ build ยป compile | jsii --silence-warnings=reserved-word
@aws/galileo-cdk: ๐พ build ยป post-compile ยป docgen | jsii-docgen -o API.md
@aws/galileo-cdk: [Error: ENOENT: no such file or directory, stat '/Users/wookjae/Engineer/Prototyping/13.Amore-GenAI/aws-genai-conversational-rag-reference/packages/galileo-cdk/node_modules/xtend'] {
@aws/galileo-cdk: errno: -2,
@aws/galileo-cdk: code: 'ENOENT',
@aws/galileo-cdk: syscall: 'stat',
@aws/galileo-cdk: path: '/Users/wookjae/Engineer/Prototyping/13.Amore-GenAI/aws-genai-conversational-rag-reference/packages/galileo-cdk/node_modules/xtend'
@aws/galileo-cdk: }
@aws/galileo-cdk: ๐พ Task "build ยป post-compile ยป docgen" failed when executing "jsii-docgen -o API.md" (cwd: /Users/wookjae/Engineer/Prototyping/13.Amore-GenAI/aws-genai-conversational-rag-reference/packages/galileo-cdk)
@aws/galileo-cdk: Warning: run-commands command "pnpm exec projen build" exited with non-zero status code
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ>
NX Running target build for 17 projects failed
Tasks not run because their dependencies failed or --nx-bail=true:
- infra:build
Failed tasks:
- @aws/galileo-cdk:build
๐พ Task "build" failed when executing "pnpm exec nx run-many --target=build --output-style=stream --nx-bail" (cwd: /Users/wookjae/Engineer/Prototyping/13.Amore-GenAI/aws-genai-conversational-rag-reference)
Expected Behavior
No fails in pnpm build.
Current Behavior
๐พ Task "build" failed when executing "pnpm exec nx run-many --target=build --output-style=stream --nx-bail" (cwd: /Users/wookjae/Engineer/Prototyping/13.Amore-GenAI/aws-genai-conversational-rag-reference)
Reproduction Steps
git pull the latest version of mainline
pnpm i
pnpm projen
pnpm build
Possible Solution
No response
Additional Information/Context
No response
Environment details (OS name and version, etc.)
pnpm: 8.9.2 node: v18.18.0 python: Python 3.11.5 poetry: Poetry (version 1.6.1) docker: Docker version 24.0.6, build ed223bc java: openjdk 17.0.8.1 2023-08-22 LTS OpenJDK Runtime Environment Corretto-17.0.8.8.1 (build 17.0.8.1+8-LTS) OpenJDK 64-Bit Server VM Corretto-17.0.8.8.1 (build 17.0.8.1+8-LTS, mixed mode, sharing) aws: aws-cli/2.13.31 Python/3.11.6 Darwin/22.6.0 exe/x86_64 prompt/off
we've seen this during development. can you try to delete your node_modules
folders and re-install dependencies?
something like this (in your project root):
\find . -type d -name node_modules -exec rm -rf {}\; &> /dev/null) || exit 0;
pnpm i
pnpm projen
pnpm build
@sociengineer has the above recommendation solved your issue?