Skip to content

[Bug]: 模块联邦使用远程应用模块,访问返回404 #7734

@TaroKong

Description

@TaroKong

版本信息

System:
    OS: macOS 15.6.1
    CPU: (12) arm64 Apple M3 Pro
    Memory: 316.56 MB / 36.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 141.0.7390.66
    Firefox: 140.0.2
    Safari: 18.6
  npmPackages:
    @modern-js/app-tools: 2.68.17 => 2.68.17 
    @modern-js/runtime: 2.68.17 => 2.68.17 
    @modern-js/tsconfig: 2.68.17 => 2.68.17

问题详情

我尝试运行这个例子https://github.com/web-infra-dev/modern-js-examples/tree/main/examples/module-federation/app-export,访问/remote路由是并不能正确展示remote app的内容,目前展示的是 404,通过调试发现远程模块已经正确加载并能够执行,但仍返回404

复现链接

https://github.com/web-infra-dev/modern-js-examples/tree/main/examples/module-federation/app-export

复现步骤

官方的例子:https://github.com/web-infra-dev/modern-js-examples/tree/main/examples/module-federation/app-export

Image

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