Skip to content

nx angular project build issue #31663

Closed as not planned
Closed as not planned
@raju-gspann

Description

@raju-gspann

Current Behavior

NX Directory
import 'C:\Users\samalra\repos\test\test-nx-ng-v20-2\node_modules@angular-devkit\build-angular\src\builders\browser' is not supported resolving ES modules imported from \test-nx-ng-v20-2\node_modules@angular-devkit\architect\node\node-modules-architect-host.js

Did you mean to import "/test-nx-ng-v20-2/node_modules/@angular-devkit/build-angular/src/builders/browser/index.js"?
Pass --verbose to see the stacktrace.

Expected Behavior

should build app successfully

GitHub Repo

No response

Steps to Reproduce

  1. in nx app (version 21)
  2. generate angular app (version 20)
  3. try to build the generated angular app,
  4. it fails with this error
    NX Directory
    import 'C:\Users\samalra\repos\test\test-nx-ng-v20-2\node_modules@angular-devkit\build-angular\src\builders\browser' is not supported resolving ES modules imported from \test-nx-ng-v20-2\node_modules@angular-devkit\architect\node\node-modules-architect-host.js

Did you mean to import "/test-nx-ng-v20-2/node_modules/@angular-devkit/build-angular/src/builders/browser/index.js"?
Pass --verbose to see the stacktrace.

Nx Report

NX   Directory 
import 'C:\Users\samalra\repos\test\test-nx-ng-v20-2\node_modules\@angular-devkit\build-angular\src\builders\browser' is not supported resolving ES modules imported from \test-nx-ng-v20-2\node_modules\@angular-devkit\architect\node\node-modules-architect-host.js

Did you mean to import "/test-nx-ng-v20-2/node_modules/@angular-devkit/build-angular/src/builders/browser/index.js"?
Pass --verbose to see the stacktrace.

Failure Logs

Package Manager Version

No response

Operating System

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

Additional Information

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions