acdlite / redux-router

Redux bindings for React Router – keep your router state inside your Redux store
MIT License
2.3k stars 200 forks source link

Uncaught TypeError: Cannot read property 'location' of undefined #287

Open GZWZC opened 7 years ago

GZWZC commented 7 years ago

ncaught TypeError: Cannot read property 'location' of undefined at new Router (main.969d8.js:8215) at main.969d8.js:19965 at measureLifeCyclePerf (main.969d8.js:19745) at ReactCompositeComponentWrapper._constructComponentWithoutOwner (main.969d8.js:19964) at ReactCompositeComponentWrapper._constructComponent (main.969d8.js:19950) at ReactCompositeComponentWrapper.mountComponent (main.969d8.js:19858) at Object.mountComponent (main.969d8.js:3171) at ReactCompositeComponentWrapper.performInitialMount (main.969d8.js:20041) at ReactCompositeComponentWrapper.mountComponent (main.969d8.js:19928) at Object.mountComponent (main.969d8.js:3171)

"react-router": "^4.1.0",

sairamdevarashetty commented 7 years ago

+1

dekkofilms commented 7 years ago

+1

ikriser commented 7 years ago

+1

vaishaliakhare commented 7 years ago

+1

lucasdaiki commented 7 years ago

+1

GitHub-Fans commented 7 years ago

+1

pg013c commented 7 years ago

+1

smashraid commented 7 years ago

Im getting this error image

Vanojx1 commented 7 years ago

+1

pg013c commented 7 years ago

I've found some solution, that works for me. In my opinion, router module is damaged, so I've removed whole node modules folder, and install again with another versions: "react": "^15.5.4", "react-router": "^3.0.2", I hope it will be helpful for you to.

blackandcold commented 7 years ago

Worked to downgrade! Thanks. At least I can continue.

jjraju1 commented 7 years ago

Downgrade worked for me too. thanks

adrianotadao commented 7 years ago

+1

Crowmeleon commented 7 years ago

@GolkowyBenQu Thanks this fixed it!