-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Cannot find module next/navigation (nuqs 2.0.0) #693
Comments
Ah, it looks like it's the ghost of #368 coming back to haunt us on Halloween. Let me see if I can reproduce it on my end. In the mean time, does it work if you edit |
Can you try this version and see if it works for you?
|
@franky47 thanks for the prompt answer. Yup, that seems to work just fine. And for the record, yes, manually editing |
🎉 This issue has been resolved in version 2.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@franky47 working fine now, thanks for the release. |
This seems to have reappeared in 2.3.2 (next 15.1.6). In the meantime I have created this patch with patch-package to get myself by: diff --git a/node_modules/nuqs/dist/chunk-S37JZELB.js b/node_modules/nuqs/dist/chunk-S37JZELB.js
index c915a96..e99aa69 100644
--- a/node_modules/nuqs/dist/chunk-S37JZELB.js
+++ b/node_modules/nuqs/dist/chunk-S37JZELB.js
@@ -1,6 +1,6 @@
import { renderURL } from './chunk-QHW6KBHR.js';
import { debug } from './chunk-3RCMAOX7.js';
-import { useRouter, useSearchParams } from 'next/navigation';
+import { useRouter, useSearchParams } from 'next/navigation.js';
import { useOptimistic, useCallback, startTransition } from 'react';
function useNuqsNextAppRouterAdapter() { |
@rettgerst are you using the Next.js "router agnostic" adapter by any chance? If so, I'd love to hear more about your setup in #869. If not, feel free to open a dedicated issue with your setup, thanks! |
I am using the router-agnostic adapter. when I get the time I can provide more details in the linked issue, thanks. |
Context
What's your version of
nuqs
?What framework are you using?
Which version of your framework are you using?
Description
Getting the following after installing nuqs@2.0.0 in a next.js 15 project:
Also occurs on a project created from scratch.
Reproduction
npm run dev
The text was updated successfully, but these errors were encountered: