You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do vite-plugin-federation support singleton in shared setting?
Just saw that singleton commented up in type define file.
Maybe this is the reason host can't not import remote with react hooks.
and here is the problem I faced now.
Versions
Reproduction
如果在remote提供的模块中,使用例如useEffect这样的hook,在host项目中使用该模块提供的组件的时候,直接会一个V.current.useEffect未定义的错误。
Additional Details
Steps to reproduce
这样提供组件没问题
这样就会报错
我的配置:
What is Expected?
希望得到回复
What is actually happening?
原因是在打包的代码块中:
The text was updated successfully, but these errors were encountered: