qiankun
qiankun copied to clipboard
能提供一个共享组件及公共方法的方案吗,尝试了使用MF,遇到很多坑,暂时放弃
Background
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Proposal
Describe the solution you'd like, better to provide some pseudo code.
Additional context
Add any other context or screenshots about the feature request here.
https://juejin.cn/post/6856569463950639117#heading-25
I met an issue that the parent Application(vue3+vite2.0) shared some common components to the child Application,binding the common component to the window , but if the common component exist slot , the child Application will throw an exception( vue3+ webpack5),
In parent Application, i had config below
Have you ever encountered this problem~
参考这个方案看看呢,看看能不能解决你的问题。 https://github.com/wwervin72/microFe-qiankun-module-federation/tree/master
参考这个方案看看呢,看看能不能解决你的问题。 https://github.com/wwervin72/microFe-qiankun-module-federation/tree/master
你确定,你这个demo里,有带slot的共享组件吗?
推荐 hel-micro https://github.com/tnfe/hel hel-micro, 模块联邦 sdk 化,免构建、热更新、工具链无关的微模块方案 相关文章介绍:hel-micro 模块联邦新革命
我这边遇到一个问题。主子应用中引入同一个远程模块A,远程模块A引入了远程模块B
报:Uncaught (in promise) Error: Container initialization failed as it has already been initialized with a different share scope
我这边遇到一个问题。主子应用中引入同一个远程模块A,远程模块A引入了远程模块B
报:Uncaught (in promise) Error: Container initialization failed as it has already been initialized with a different share scope
same here
我这边遇到一个问题。主子应用中引入同一个远程模块A,远程模块A引入了远程模块B
报:Uncaught (in promise) Error: Container initialization failed as it has already been initialized with a different share scope
same here
我也碰见这个问题了,定位了下,是因为 子应用的remoteEntry.js里注册了shared模块,index.js里也注册了shared模块。在父应用中加载子应用共享模块的同时,启动子应用。这时,会从remoteEntry.js和index.js先后注册共享模块,导致后面注册时的共享模块和前面注册的不是同一个内存地址,就会抛出这个异常。 目前还没找到解决方案
我这边遇到一个问题。主子应用中引入同一个远程模块A,远程模块A引入了远程模块B
报:Uncaught (in promise) Error: Container initialization failed as it has already been initialized with a different share scope
same here
我也碰见这个问题了,定位了下,是因为 子应用的remoteEntry.js里注册了shared模块,index.js里也注册了shared模块。在父应用中加载子应用共享模块的同时,启动子应用。这时,会从remoteEntry.js和index.js先后注册共享模块,导致后面注册时的共享模块和前面注册的不是同一个内存地址,就会抛出这个异常。 目前还没找到解决方案
请问解决了吗,我也遇到了
我这边遇到一个问题。主子应用中引入同一个远程模块A,远程模块A引入了远程模块B 报:Uncaught (in promise) Error: Container initialization failed as it has already been initialized with a different share scope same here 我也碰见这个问题了,定位了下,是因为 子应用的remoteEntry.js里注册了shared模块,index.js里也注册了shared模块。在父应用中加载子应用共享模块的同时,启动子应用。这时,会从remoteEntry.js和index.js先后注册共享模块,导致后面注册时的共享模块和前面注册的不是同一个内存地址,就会抛出这个异常。 目前还没找到解决方案
我这边遇到一个问题。主子应用中引入同一个远程模块A,远程模块A引入了远程模块B 报:Uncaught (in promise) Error: Container initialization failed as it has already been initialized with a different share scope same here 我也碰见这个问题了,定位了下,是因为 子应用的remoteEntry.js里注册了shared模块,index.js里也注册了shared模块。在父应用中加载子应用共享模块的同时,启动子应用。这时,会从remoteEntry.js和index.js先后注册共享模块,导致后面注册时的共享模块和前面注册的不是同一个内存地址,就会抛出这个异常。 目前还没找到解决方案
请问解决了吗,我也遇到了
还没解决,现在又回过头来解决这个问题了,请问,你解决了吗?