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

cdk8s init is failing #139

Closed
Chriscbr opened this issue Nov 30, 2021 · 0 comments · Fixed by #140
Closed

cdk8s init is failing #139

Chriscbr opened this issue Nov 30, 2021 · 0 comments · Fixed by #140
Labels
bug Something isn't working

Comments

@Chriscbr
Copy link
Contributor

Chriscbr commented Nov 30, 2021

During cdk8s init typescript-app, the compile step currently fails with the following trace:

Found 178 errors.

Error: error during project initialization: Error: Command failed: npm run compile
    at checkExecSyncError (node:child_process:826:11)
    at execSync (node:child_process:900:15)
    at Object.exports.post (/Users/rybickic/.npm/_npx/7ca99055be6fff6e/node_modules/cdk8s-cli/templates/typescript-app/.hooks.sscaff.js:35:3)
    at executePostHook (/Users/rybickic/.npm/_npx/7ca99055be6fff6e/node_modules/sscaff/lib/sscaff.js:81:37)
    at sscaff (/Users/rybickic/.npm/_npx/7ca99055be6fff6e/node_modules/sscaff/lib/sscaff.js:48:15)
    at async Object.handler (/Users/rybickic/.npm/_npx/7ca99055be6fff6e/node_modules/cdk8s-cli/lib/cli/cmds/init.js:51:13)
STDOUT:
undefined
STDERR:
undefined
    at Object.handler (/Users/rybickic/.npm/_npx/7ca99055be6fff6e/node_modules/cdk8s-cli/lib/cli/cmds/init.js:55:19)

The root cause of this is jestjs/jest#12098.

This issue isn't affecting the AWS CDK CLI because it pins the version of dependencies that users start with. This seems like a good solution, since it allows us to reproduce the project starting state of users during builds.

(If we don't fix this, it will likely be fixed upstream within a few days -- but in general, we want to avoid this issue happening again in the future.)

@Chriscbr Chriscbr added the bug Something isn't working label Nov 30, 2021
@mergify mergify bot closed this as completed in #140 Dec 1, 2021
mergify bot pushed a commit that referenced this issue Dec 1, 2021
Fixes #139

I looked into some other solutions that would install versions of dependencies based on the versions within `cdk8s-cli`'s package.json, but decided against it since it would add more complexity to our scaffolding logic that doesn't provide much benefit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant