bug: 在微前端架构下绑定react runtime会导致页面出现bug
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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