Tencent / Tencent/hel

bug: 在微前端架构下绑定react runtime会导致页面出现bug

Open
#152 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
99
PR merge metrics
No merged PRs in 30d

Description

ChunkLoadError: Loading chunk 59b86d97 failed.
at c.chunkEnsures.jsonp (runtime_entry.js:203:18)
at eval (runtime_entry.js:178:35)
at Array.reduce ()
at c.ensure (runtime_entry.js:177:14)
at eval (route.tsx:60:38)

有没有给react起别名的办法,或者做个隔离,目前只要基座绑定了会导致子应用没法使用,所以我目前基座都一直是使用安装包/libs/xxx这种esm形式是静态的很不方便。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the micro-frontend setup where the host binds the React runtime and the child application fails with ChunkLoadError. Start with the stack locations in runtime_entry.js and route.tsx, then determine whether React aliasing or runtime isolation is feasible. Done means the child application loads successfully while the host remains bound to React.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.