ice-lab / icestark

:tiger: Micro Frontends solution for large application(面向大型应用的微前端解决方案),站点国内镜像:https://icestark.gitee.io
https://micro-frontends.ice.work
MIT License
2.03k stars 173 forks source link

通过create-react-app 创建的项目,采用hash路由方式无法挂载 #691

Open roy360662821 opened 1 year ago

roy360662821 commented 1 year ago

Do you want to request a feature or report a bug? feature What is the current behavior? 通过create-react-app 创建的项目,采用hash路由方式直接运行无问题,但无法挂载到主应用, 主应用页面显示错误: Cannot read properties of null (reading 'mount')

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. 子应用代码:** index.tsx: beccf901-a025-4233-af50-d50ef103bf9c

app.tsx af0bd7b7-3478-4b5d-b49a-e9199b8c395c

主应用: ad04c42a-cc1d-472a-8ab2-d3de090cdd68

d1bdf808-0095-488d-9672-85a36781d82e

What is the expected behavior? 请问这种现象有大佬遇到过吗,有办法解决吗?

wisdomofgod commented 1 year ago

邮件已收到~~

ClarkXia commented 1 year ago

如果是初始化项目可以直接提供下 demo