Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

本地开发链接生产环境的联邦模块时,使用Bridge加载模块,报错 #3216

Open
5 tasks done
dnwu opened this issue Nov 12, 2024 · 0 comments
Open
5 tasks done

Comments

@dnwu
Copy link

dnwu commented Nov 12, 2024

Describe the bug

报错信息
img_v3_02gi_7376263c-ebab-49aa-ab16-2d82bb8974fg

静态文件地址可访问,例如demo中的另外一个模块button是可以正常加载的,layout是被bridge包括的


demo如下

demo.zip

provider是发布在了ng

cunsumer是本地起的服务

Reproduction

Used Package Manager

npm

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 AMD Ryzen 7 PRO 5750G with Radeon Graphics
    Memory: 3.58 GB / 15.34 GB
  Binaries:
    Node: 20.12.2 - C:\Program Files\nodejs\node.EXE
    npm: 10.5.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.15.4 - ~\AppData\Roaming\npm\pnpm.CMD
  Browsers:
    Edge: Chromium (130.0.2849.56)
    Internet Explorer: 11.0.22621.1

Validations

English

When linking federated modules from the production environment in local development, an error occurs while using Bridge to load the modules.

Describe the Bug

Error message:
img_v3_02gi_7376263c-ebab-49aa-ab16-2d82bb8974fg

The static file URLs are accessible. For example, another module in the demo, button, loads normally, while layout is wrapped by Bridge and encounters an issue.


Demo below:

demo.zip

The provider is deployed on the network, and the consumer is running locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant