Error when using the "Unified (router-agnostic)" imports (Error: Cannot find module '/node_modules/next/navigation'…
)
#869
Labels
adapters/next/app
Uses the Next.js app router
adapters/next/pages
Uses the Next.js pages router
bug
Something isn't working
cannot-reproduce
Either no reproduction provided, or cannot reproduce with a minimal setup
Context
What's your version of
nuqs
?What framework are you using?
Which version of your framework are you using?
Description
I migrated from
"nuqs": "1.20.0"
to"nuqs": "2.3.1"
and followed the https://github.com/47ng/nuqs/blob/next/errors/NUQS-404.md docs to useimport { NuqsAdapter } from 'nuqs/adapters/next'
since we are using both, the pages and app folder.I changed the imports to use the separate
/app
and/pages
imports in the corresponding files and the error was gone.Suggestion
Reevaluate the section https://nuqs.47ng.com/docs/adapters#nextjs-unified of the docs, it looks like that does not work as intended
The text was updated successfully, but these errors were encountered: