Skip to content

[Bug]: Cannot destructure property ‘basename’ of s.useContext(…) as it is null with basename configuration. #283

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

Open
4 tasks done
VenkatS1208 opened this issue Mar 31, 2025 · 3 comments · May be fixed by #284
Open
4 tasks done
Labels
bug Something isn't working COMMUNITY: PR is welcomed We think it's a good feature to have but would love for the community to help with the PR for it help wanted Extra attention is needed

Comments

@VenkatS1208
Copy link

VenkatS1208 commented Mar 31, 2025

Describe the bug

I have two react apps and deploying in same domain with different basename.

http://domain.com - host application
http://domain.com/app1 - remote application

And I’m using react-router-dom v6 for routing. When navigate from to route application it’s working (http://domain.com/app1/homepage) but when reload the page getting ** Cannot destructure property ‘basename’ of s.useContext(…) as it is null**

Image

Version

v6.2.0

Reproduction

I cannot share repository details

Relevant log output

Validations

@VenkatS1208 VenkatS1208 added the bug Something isn't working label Mar 31, 2025
@gioboa
Copy link
Collaborator

gioboa commented Apr 1, 2025

Hi @VenkatS1208 thanks for your feedback, this is a good first issue.
Feel free to drop a PR to solve this problem. Thanks

@gioboa gioboa added help wanted Extra attention is needed COMMUNITY: PR is welcomed We think it's a good feature to have but would love for the community to help with the PR for it labels Apr 1, 2025
@VenkatS1208
Copy link
Author

VenkatS1208 commented Apr 2, 2025

Hi @gioboa, Thanks for quick response.
Created PR: #284

@gioboa
Copy link
Collaborator

gioboa commented Apr 2, 2025

Thanks, that's nice 👏👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working COMMUNITY: PR is welcomed We think it's a good feature to have but would love for the community to help with the PR for it help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants