-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
Wrapper doesn't support Next 14 #564
Comments
I have the same problem and I am looking for a perfect solution. Is there a perfect solution to solve this problem? @jarriaza-102 |
I don't think there's a "clean" solution for this, I would say the code in the library should be changed to not use the outdated code. |
To deal with this, I created a new repository, upgraded it based on Next-redux-wrapper, upgraded both react and next, and still passed all the original tests. At present, my own project has been connected to next-redux-wrapper-future development. Consider giving it a try to see if it solves your problem. |
I have the same issue and, if I interpreted correctly, the App Router architecture doesn't work with next-redux-wrapper but only Pages Router architecture works with it.
And for App Router it explains the steps to follow: |
Describe the bug
useRouter
hook gotten fromnext/router
is throwing errors while working with Next 14, development server is going alright, it's just whenever build process take place and run the built version of the code.This file in next-redux-wrapper is using
next/router
, and that's outdated for Next 14.There's a file on Next 14 that is throwing an error when router doesn't exist, and the router gotten from
next/router
is the guilty of that, there should be a migration tonext/navigation
.To Reproduce
Update to Next 14 and wrap component with
reduxWrapper.withRedux
.Expected behavior
Wrapper should run with Next 14, I think problem is also on Next >= 13.5
Desktop (please complete the following information):
Additional context
I did a change in my
node_modules
folder removing the code that is usinguseRouter
fromnext/router
, and it works just fine!Also there's no way to use redux-wrapper with
generateStaticParams
.The text was updated successfully, but these errors were encountered: