Skip to content
← Back to activity

Public problem

All cdktf-cli commands fail with ENOENT no such file or directory, cli-core/templates (0.17.2)

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

Every cdktf-cli command suddenly started failing with Error: ENOENT: no such file or directory, scandir '.../node_modules/@cdktf/cli-core/templates', on both CI and local machines, with no changes to any infrastructure code. The breakage started the same day cdktf-cli 0.17.2 was released, so anything pulling latest broke at once. Pinning or reinstalling did not help until the fixed release shipped, since the templates were missing from the published package itself.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

This was a broken 0.17.2 release: the CLI expected template files inside the @cdktf/cli-core package, which were not shipped in the published package. Upgrade to cdktf-cli 0.17.3 or later, which fixes the packaging (a reporter confirmed 0.17.3 works). If you cannot upgrade immediately, pin the previous release with npm install --global cdktf-cli v0.17.1, which multiple people confirmed unblocks CI. Source: https://github.com/hashicorp/terraform-cdk/issues/3025

Source: https://github.com/hashicorp/terraform-cdk/issues/3025