Skip to content

[Bug]: Rspack dev server breaks when I add external-remotes-plugin #12460

@nurbolnygmanov

Description

@nurbolnygmanov

System Info

System:
OS: Windows 11 10.0.26100
CPU: (12) x64 12th Gen Intel(R) Core(TM) i7-1255U
Memory: 1.37 GB / 15.69 GB
Binaries:
Node: 22.3.0
npm: 10.8.1
pnpm: 9.12.2
npmPackages:
@rspack/cli: ^1.6.7 => 1.6.7
@rspack/core: ^1.6.7 => 1.6.7

Details

adding new ExternalTemplateRemotesPlugin(), to a plugins array causes error when i run pnpm run dev

it causes error [webpack-dev-middleware] [Error: × TypeError: Cannot read properties of undefined (reading 'tap')

so is there any other recommended way to work with dynamic remotes in module federation 1.5 ?

Reproduce link

https://github.com/nurbolnygmanov/rspack-external-remotes-plugin

Reproduce Steps

this is basic rspack template
run pnpm i pnpm run dev

you will get terminal error: [webpack-dev-middleware] [Error: × TypeError: Cannot read properties of undefined (reading 'tap')

run pnpm run build
[rspack-cli] [Error: × TypeError: Cannot read properties of undefined (reading 'tap')

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions