remix-run / react-router

Declarative routing for React

Home Page:https://reactrouter.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Cannot read properties of null (reading b

algomage opened this issue · comments

What version of React Router are you using?

6.14.1

Steps to Reproduce

Install react-router-dom ^6.14.1 and react ^18.2.0 in an electron app. As it is an electron app instead of Browserrouter I am using hashRouter
It is running smoothly on all users machine except one windows machine where blank screen with the below error is coming

WhatsApp Image 2024-05-06 at 4 36 27 PM
WhatsApp Image 2024-05-06 at 4 36 28 PM

Expected Behavior

React router should work properly and it should navigate through different page

Actual Behavior

Currently it's crashing just when routes are called.

It appears you're using a Link outside of BrowserRouter/RouterProvider. This isn't a bug with the library.

Apologies for raising it as a bug. Thanks a lot for your reply. It solved our issue. Just out of curiosity why this issue popped up in 2 machine out of 600. Is it something to do with electron ?