Skip to content

Angular CLI could not be decorated to enable computation caching #35816

@spierala

Description

@spierala

Current Behavior

> apicsng@0.0.0 postinstall
> node ./decorate-angular-cli.js

Angular CLI could not be decorated to enable computation caching. Please ensure @nx/workspace is installed.

This message occurs after updating to latest NX (22.7.4) with nx migrate latest and running npm install

Expected Behavior

After npm install we should see:

Angular CLI has been decorated to enable computation caching.

GitHub Repo

No response

Steps to Reproduce

  1. create a nx project with angular
  2. nx migrate latest
  3. npm install

Nx Report

Node           : 20.19.5
OS             : win32-x64
Native Target  : x86_64-windows
npm            : 10.8.2
daemon         : Available

nx (global)            : 22.7.4
nx                     : 22.7.4
@nx/js                 : 22.7.4
@nx/eslint             : 22.7.4
@nx/workspace          : 22.7.4
@nx/angular            : 22.7.4
@nx/jest               : 22.7.4
@nx/cypress            : 22.7.4
@nx/devkit             : 22.7.4
@nx/eslint-plugin      : 22.7.4
@nx/module-federation  : 22.7.4
@nx/rspack             : 22.7.4
@nx/webpack            : 22.7.4
typescript             : 5.9.3
---------------------------------------
Community plugins:
---------------------------------------
Cache Usage: 0.00 B / 47.60 GB

Failure Logs

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

Previous versions of NX (e.g, 20.5.1) show a deprecation warning:

Decoration of the Angular CLI is deprecated and will be removed in a future version

Maybe it is normal that there is no decoration anymore in more recent versions of Nx? In that case the message described in the issue above is confusing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions