ZBLOG

[MFSU] require('D:/a/yupi/UserCenter-before/user-center-before/myapp/node_modules/@umijs/plugin-ui-blocks/lib/sdk/flagBabelPlugin/GUmiUIFlag.js') found in D:\a\yupi\UserCenter-before\user-center-before\myapp\src\.umi\umi.ts, which w ill broken the...

根据你提供的日志信息,这似乎是一个关于项目中使用了 MFSU(Module Federation Service Unit)预构建功能时的警告。它指出在你的代码中发现了一些可能会破坏 MFSU 预构建匹配的引用,请将其更改为 esm 模块导入。

具体来说,你需要修改 D:\a\yupi\UserCenter-before\user-center-before\myapp\src\.umi\umi.ts 文件中以下两个引用:

  1. require('D:/a/yupi/UserCenter-before/user-center-before/myapp/node_modules/@umijs/plugin-ui-blocks/lib/sdk/flagBabelPlugin/GUmiUIFlag.js') 修改为相应的 esm 模块导入形式。
  2. require('D:/a/yupi/UserCenter-before/user-center-before/myapp/node_modules/@umijs/preset-ui/lib/bubble') 修改为相应的 esm 模块导入形式。

通过这样的修改,可以避免破坏 MFSU 预构建匹配,使项目能够正常运行。


内容由零声教学AI助手提供,问题来源于学员提问

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://golang.0voice.com/?id=11235

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?