Skip to content

Amplify Backend CLI introduces multiple deprecated dependencies (inflight, glob@7, rimraf@3, core-js@2, outdated Babel plugins) #3062

@michaelgiraldo

Description

@michaelgiraldo

Environment information

npx ampx info output:

(Replace this line with your actual output — run `npx ampx info` in your project.)

The issue appears on:
- macOS (Apple Silicon)
- Node v25.2.1
- npm 11.6.2
- @aws-amplify/backend-cli 1.8.0

Multiple deprecated dependency chains originate from Amplify’s backend toolchain and model generation plugins, independent of project code.

Describe the bug

Installing or updating dependencies in a project that uses @aws-amplify/backend-cli results in a large number of deprecated, unsupported, and in some cases unsafe dependency warnings.

All deprecated packages originate from Amplify’s backend CLI toolchain and related plugins (modelgen, form generator, GraphQL types generator).

These include:

This results in dozens of warnings during npm install and impacts CI, security scanning tools, and developer experience.

These warnings cannot be resolved from the consuming project because the deprecated dependencies are deeply nested inside Amplify’s dependency graph.

Reproduction steps

  1. Create or open any project that uses:

    • @aws-amplify/backend-cli
    • Amplify form generator
    • Amplify modelgen
    • Amplify GraphQL types generator
  2. Run:
    npm install
    or
    npm update
    or any dependency update script.

  3. Observe warnings such as:
    npm WARN deprecated [email protected]
    npm WARN deprecated [email protected]
    npm WARN deprecated [email protected]
    npm WARN deprecated [email protected]
    npm WARN deprecated [email protected]
    npm WARN deprecated @babel/plugin-proposal-class-properties
    npm WARN deprecated @babel/plugin-proposal-object-rest-spread

  4. Run:
    npm ls inflight
    npm ls glob@7
    npm ls rimraf@3
    npm ls core-js@2
    npm ls node-domexception
    npm ls @babel/plugin-proposal-class-properties

  5. The dependency trace reveals that all deprecated packages come from the Amplify toolchain.

Dependency trace example:

[email protected]:
@aws-amplify/backend-cli
└─ @aws-amplify/form-generator
└─ @aws-amplify/appsync-modelgen-plugin
└─ @graphql-codegen/visitor-plugin-common
└─ @graphql-tools/relay-operation-optimizer
└─ @ardatan/relay-compiler
└─ [email protected]
└─ [email protected]

[email protected] and [email protected]:
@aws-amplify/model-generator
└─ @aws-amplify/graphql-types-generator
└─ [email protected]
└─ [email protected]

[email protected]:
@aws-amplify/backend-cli
└─ @aws-amplify/form-generator
└─ node-fetch@3
└─ fetch-blob
└─ node-domexception

Deprecated Babel proposal plugins:
@aws-amplify/appsync-modelgen-plugin
└─ relay-compiler@12
└─ babel-preset-fbjs
├─ @babel/plugin-proposal-class-properties
└─ @babel/plugin-proposal-object-rest-spread

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions