Skip to content

TS2307: Cannot find module '$amplify/env/... #3092

@jtweeks

Description

@jtweeks

Environment information

System:
  OS: macOS 26.2
  CPU: (14) arm64 Apple M4 Pro
  Memory: 166.63 MB / 24.00 GB
  Shell: /bin/zsh
Binaries:
  Node: 20.19.4 - ~/.nvm/versions/node/v20.19.4/bin/node
  Yarn: undefined - undefined
  npm: 10.8.2 - ~/.nvm/versions/node/v20.19.4/bin/npm
  pnpm: 10.16.1 - ~/.nvm/versions/node/v20.19.4/bin/pnpm
NPM Packages:
  @aws-amplify/backend: 1.15.0
  @aws-amplify/backend-ai: Not Found
  @aws-amplify/backend-cli: 1.5.0
  @aws-amplify/backend-deployer: 1.1.20
  @aws-amplify/backend-output-schemas: 1.8.0
  @aws-amplify/backend-secret: 1.4.2
  @aws-amplify/cli-core: 1.4.1
  @aws-amplify/data-schema: 1.20.2
  @aws-amplify/form-generator: 1.2.6
  @aws-amplify/model-generator: 1.2.2
  @aws-amplify/sandbox: 1.2.12
  @aws-amplify/schema-generator: 1.4.1
  aws-amplify: 6.15.10
  aws-cdk: 2.1006.0
  aws-cdk-lib: 2.186.0
  typescript: 5.8.2
No AWS environment variables
No CDK environment variables

Describe the bug

I was updating from versions backend: 1.15.0 -> 1.19.0, backend-cli 1.5.0 -> 1.8.1, aws-cdk-lib 2.186.0 -> 2.235.1.

The backend build, doesn't have a front end attached to it. Only a web hook command, to build a separate front end project.

Sandbox builds and runs without a problem.

I have currently reverted the dependency version changes, but left my numerous updates to my backend to attempt a deployment. The info above is after reverting.

Reproduction steps

Attempt a deployment in amplify

Metadata

Metadata

Assignees

No one assigned

    Labels

    p3pending-responseIssue is pending response from author

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions