lagunovsky / redux-react-router

A Redux binding for React Router v6
MIT License
73 stars 9 forks source link

Have an issue The prop `history` is marked as required in `Router`, but its value is `undefined`. #12

Closed Kost927 closed 2 years ago

Kost927 commented 2 years ago

But it is there. As you can see in the first screenshot history obj comes not undefined.

Screenshot 2022-09-12 at 11 48 12 Screenshot 2022-09-12 at 11 51 07 Screenshot 2022-09-12 at 11 51 49

package.json: "history": "^5.3.0", "react-router-dom": "^6.3.0", "@lagunovsky/redux-react-router": "^4.0.0"

Kost927 commented 2 years ago

using debugger can see that the history obj comes not complete. Any suggestions on how to fix it?

Screenshot 2022-09-12 at 12 11 32
Kost927 commented 2 years ago

Sorry, react-router was not updated to 6th version, only react router dom.

Kost927 commented 2 years ago

Also had a problem with history dep. Tried 4.10.* and 5.3.0 (latest), and tried to remove history dep at all, as it is present in react-router-dom. Always had errors. The solution is to use history 5.0.0.

lagunovsky commented 2 years ago

Doesn't work with 5.3 and works with 5.0, am I right?

Kost927 commented 2 years ago

Yes, you are right