Skip to content

Angular module federation error when importing @angular/core/rxjs-interop only in remote #32316

@JackWBaker

Description

@JackWBaker

Current Behavior

When you create a project using angular and module federation. Then use @angular/core/rxjs-interop in a remote without using it in a host you get the following error:

Image

Expected Behavior

It should load the remote and run correctly

GitHub Repo

https://github.com/JackWBaker/module-federation-rxjs-interop

Steps to Reproduce

  1. nx serve host to start the app
  2. Navigate to /one
  3. See error
  4. Stop app
  5. Uncomment code in apps/host/src/app/app.ts. (// import '@angular/core/rxjs-interop';)
  6. nx serve host to start the app
  7. Navigate to /one
  8. No error

Nx Report

Node           : 22.12.0
OS             : darwin-x64
Native Target  : x86_64-macos
pnpm           : 10.0.0

nx                     : 21.3.11
@nx/js                 : 21.3.11
@nx/eslint             : 21.3.11
@nx/workspace          : 21.3.11
@nx/angular            : 21.3.11
@nx/devkit             : 21.3.11
@nx/eslint-plugin      : 21.3.11
@nx/module-federation  : 21.3.11
@nx/rspack             : 21.3.11
@nx/web                : 21.3.11
@nx/webpack            : 21.3.11
typescript             : 5.8.3
---------------------------------------
Community plugins:
angular-eslint : 20.1.1
---------------------------------------
Cache Usage: 28.99 MB / 46.56 GB

Failure Logs

Package Manager Version

No response

Operating System

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

Additional Information

No response

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions