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

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

Open
roy360662821 opened this issue Jul 19, 2023 · 2 comments

Comments

@roy360662821
Copy link

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
Copy link
Collaborator

wisdomofgod commented Jul 19, 2023 via email

@ClarkXia
Copy link
Collaborator

ClarkXia commented Aug 8, 2023

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

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

3 participants