Comments (4)
这边已经复现,具体原因是子应用js的运行是在闭包中运行导致module federation读取不到闭包内的全局变量,所以误以为远程模块加载失败从而报错
解决办法详见文档:
被引用的远程模块在暴露自己的时候选择 library 的 type 为 window即可
from wujie.
你好,可以初步定位一下为什么脚本会加载失败吗
from wujie.
from wujie.
@yiludege 多个模块联邦串联的话,按照上面的配置调整好像不生效呢,我提供了一个vue 可复现异常的demo,可以帮忙看一下么
from wujie.
Related Issues (20)
- 主应用和子应用为用一个工程,子应用偶发白屏 HOT 2
- 子应用在CDN中引入了地图框架Cesium,加载子应用时报错DOMException: Failed to construct 'Worker': Script at 'http://localhost:9081/cdn/cesium/Workers/cesiumWorkerBootstrapper.js' cannot be accessed from origin 'http://localhost:8080'. HOT 1
- WujieReact loading props not work
- 移动端 safari 浏览器 通过手势侧滑返回会闪屏
- 主应用内添加子应用初始化启动浏览器控制台报错
- 子应用 CSS 文件重复加载
- 单例模式下,cssBeforeLoaders在首次加载时生效,切换页面再次回到子应用所在页面,cssBeforeLoaders添加的css代码消失
- 子应用内存增加之后,主应用页面崩溃,报错STATUS_INTEGER_DIVIDE_BY_ZERO
- 内存占用太夸张了,一晚上翻了一倍 HOT 4
- 在子应用中,document.querySelector(":root") 返回的是null
- 微应用使用单例模式并且使用element-plus时报错
- wujie嵌入两个子应用 ag grid,ag grid拖拽功能失效 HOT 2
- 有没有可能,一个子应用的两个页面,在主应用的同一屏中显示,并且使用一个 iframe? HOT 1
- poper.js在v2有定位问题,在v3里没有
- cssIgnores,注入的link丢失部分配置 HOT 1
- wujie 对于 react18 + vite 支持是否友好?
- 子应用切换路由 父路由下面几个子路由切换 界面一直重新加载问题
- 切换路由 dom节点持续增加 内存持续增加 深刷新才会释放
- wujie无法接入next项目 有什么好解决方案吗
- 接入 vite+vue3+arco 弹窗无法全屏
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wujie.