Environment information
System:
OS: Linux 4.14 Amazon Linux 2023
CPU: (8) x64 Intel(R) Xeon(R) Platinum 8275CL CPU @ 3.00GHz
Memory: 13.56 GB / 15.19 GB
Shell: /bin/bash
Binaries:
Node: 24.18.0 - /root/.nvm/versions/node/v24.18.0/bin/node
Yarn: undefined - undefined
npm: 11.16.0 - /root/.nvm/versions/node/v24.18.0/bin/npm
pnpm: 11.10.0 - /root/.nvm/versions/node/v24.18.0/bin/pnpm
NPM Packages:
@aws-amplify/ai-constructs: Not Found
@aws-amplify/auth-construct: Not Found
@aws-amplify/backend: Not Found
@aws-amplify/backend-ai: Not Found
@aws-amplify/backend-auth: Not Found
@aws-amplify/backend-cli: Not Found
@aws-amplify/backend-data: Not Found
@aws-amplify/backend-deployer: Not Found
@aws-amplify/backend-function: Not Found
@aws-amplify/backend-output-schemas: Not Found
@aws-amplify/backend-output-storage: Not Found
@aws-amplify/backend-secret: Not Found
@aws-amplify/backend-storage: Not Found
@aws-amplify/cli-core: Not Found
@aws-amplify/client-config: Not Found
@aws-amplify/data-construct: Not Found
@aws-amplify/data-schema: 1.26.0
@aws-amplify/deployed-backend-client: Not Found
@aws-amplify/form-generator: Not Found
@aws-amplify/model-generator: Not Found
@aws-amplify/platform-core: Not Found
@aws-amplify/plugin-types: Not Found
@aws-amplify/sandbox: Not Found
@aws-amplify/schema-generator: Not Found
@aws-cdk/toolkit-lib: Not Found
aws-amplify: 6.18.0
aws-cdk-lib: Not Found
typescript: 6.0.3
npm warn exec The following package was not found and will be installed: cdk@2.1129.0
CDK CLI Version: 2.1129.0 (build 629ca49)
normal verbosity, no debugging
AWS environment variables:
AWS_AMPLIFY_WEB_DYNAMIC_RUNTIME = nodejs16.x
AWS_EXECUTION_ENV = AWS_ECS_EC2
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = /v2/credentials/REDACTED
AWS_AMPLIFY_AL2023_DEFAULT_BUILD_IMAGE = true
AWS_STEP_NAME = BUILD
AWS_BRANCH = test
AWS_JOB_ID = REDACTED
AWS_DEFAULT_REGION = us-east-1
AWS_GITHUB_SSH_PUBLIC_KEYS = REDACTED
AWS_REGION = us-east-1
AWS_AMPLIFY_SKEW_PROTECTION_ENABLED = false
AWS_APP_ID = REDACTED
AWS_PREVIOUS_COMMIT_ID = REDACTED
AWS_PLATFORM = WEB
AWS_AMPLIFY_BUILD_IMAGE_VERSION = 2025-09
AWS_BRANCH_ARN = arn:aws:amplify:us-east-1:REDACTED:apps/REDACTED/branches/test
AWS_AMPLIFY_INTERNAL_IMAGE_OPTIMIZATION = true
AWS_BUILDSPEC_CONTENT = REDACTED
AWS_COMMIT_ID = REDACTED
AWS_CLONE_URL = REDACTED
AWS_AMPLIFY_DEPLOYMENT_ID = REDACTED
AWS_REQUEST_ID = REDACTED
AWS_AMPLIFY_BUILD_COMPUTE_TYPE = LARGE_16GB
No CDK environment variables
Describe the bug
I bumped my Typescript version to 7.0.3 (released yesterday) and got an error during the amplify deploy stage.
TypeScript 7.0 (Project Corsa) is a complete rewrite of the TypeScript compiler in Go.
The npm package no longer ships the JavaScript-based Compiler API (ts.sys, ts.createProgram, ts.readConfigFile, etc.). These are all undefined.
@aws-amplify/backend-deployer@2.1.7 uses the TypeScript Compiler API directly in
lib/ts_compiler.js:
Reproduction steps
node repro.js
Expected output with typescript@6.0.3: "ts.sys.readFile is a function: true"
Expected output with typescript@7.0.2: "TypeError: Cannot read properties of undefined (reading 'readFile')"
Environment information
Describe the bug
I bumped my Typescript version to 7.0.3 (released yesterday) and got an error during the amplify deploy stage.
TypeScript 7.0 (Project Corsa) is a complete rewrite of the TypeScript compiler in Go.
The npm package no longer ships the JavaScript-based Compiler API (
ts.sys,ts.createProgram,ts.readConfigFile, etc.). These are allundefined.@aws-amplify/backend-deployer@2.1.7uses the TypeScript Compiler API directly inlib/ts_compiler.js:Reproduction steps
node repro.js
Expected output with typescript@6.0.3: "ts.sys.readFile is a function: true"
Expected output with typescript@7.0.2: "TypeError: Cannot read properties of undefined (reading 'readFile')"