Giter VIP home page Giter VIP logo

Comments (4)

yiludege avatar yiludege commented on July 4, 2024 1

这边已经复现,具体原因是子应用js的运行是在闭包中运行导致module federation读取不到闭包内的全局变量,所以误以为远程模块加载失败从而报错

解决办法详见文档

被引用的远程模块在暴露自己的时候选择 library 的 type 为 window即可

企业微信截图_5693bda5-9997-4334-a6d1-a5d2724b297d

from wujie.

yiludege avatar yiludege commented on July 4, 2024

你好,可以初步定位一下为什么脚本会加载失败吗

from wujie.

961998264 avatar 961998264 commented on July 4, 2024

image
image

from wujie.

OnlyYu1996 avatar OnlyYu1996 commented on July 4, 2024

@yiludege 多个模块联邦串联的话,按照上面的配置调整好像不生效呢,我提供了一个vue 可复现异常的demo,可以帮忙看一下么

from wujie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.