Skip to content

compiler.__internal__registerBuiltinPlugin is not a function #4024

@pishchela

Description

@pishchela

Describe the bug

@module-federation/rspack has a peer dependency @rspack/core": ">=0.7. Day ago they published version 1.5.0. After which project has a compile time error:
compiler.__internal__registerBuiltinPlugin is not a function.

Issue basically resolving after installing older version of @rspack/core, for example: npm i @rspack/core@1.4.1

Steps to reproduce error:

  1. npm i
  2. npx nx run-many -t build

project created by steps provided here:

  1. npx create-nx-workspace@latest ng-mf --preset=apps
  2. cd ng-mf
  3. npx nx add @nx/angular
  4. nx g @nx/angular:host apps/dashboard --prefix=ng-mf
  5. nx g @nx/angular:remote apps/login --prefix=ng-mf --host=dashboard

Reproduction

https://github.com/pishchela/project-build-issue/tree/master

Used Package Manager

npm

System Info

System:
    OS: macOS 15.6.1
    CPU: (11) arm64 Apple M3 Pro
    Memory: 195.52 MB / 18.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.19.0 - ~/.nvm/versions/node/v20.19.0/bin/node
    npm: 10.8.2 - ~/.nvm/versions/node/v20.19.0/bin/npm
  Browsers:
    Chrome: 139.0.7258.140
    Safari: 18.6

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions