Skip to content

使用@module-federation/vite模块联邦在子系统中无法正常工作 #1689

@an501920078

Description

@an501920078

问题描述

当我把我的项目尝试升级到vite8(主+子)时,之前的架构使用的是@originjs/vite-plugin-federation依赖,并没有很大的兼容性问题,但是和vite8不兼容,官方已经推荐使用@module-federation/vite。当更换依赖后报错 http://localhost:5000/xxxx/remoteEntry-[hash] net::ERR_ABORTED 404 (Not Found),尝试使用ignoreChecker依旧无法解决

复现步骤

1.子项目使用@module-federation/vite联邦其他项目

上传截图

Image

复现仓库

请提供一个精简的代码仓库,然后上传到自己的 github,以帮助我们复现您的问题。

环境信息

  • micro-app版本:1.0.0-rc.29
  • 主应用前端框架&版本:"@module-federation/vite": "^1.14.2","vue": "^3.5.32"
  • 子应用前端框架&版本:"@module-federation/vite": "^1.14.2","vue": "^3.5.32"
  • 构建工具&版本: "vite": "^8.0.7"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions