generated from chiffre-io/template-library
-
-
Notifications
You must be signed in to change notification settings - Fork 199
Closed as not planned
Labels
bugSomething isn't workingSomething isn't workingcannot-reproduceEither no reproduction provided, or cannot reproduce with a minimal setupEither no reproduction provided, or cannot reproduce with a minimal setup
Description
Context
What's your version of nuqs
?
2.5.2
What framework are you using?
✅/Next.js (pages router)
Which version of your framework are you using?
15.1.5
Description
When using nuqs in a Next.js project with Pages Router (/pages/...), importing hooks like useQueryState causes a crash in development mode:
Error: require() of ES Module /node_modules/nuqs/dist/index.js from /.next/server/pages/... not supported.
Instead change the require of index.js to a dynamic import() which is available in all
There is no errors in production build
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcannot-reproduceEither no reproduction provided, or cannot reproduce with a minimal setupEither no reproduction provided, or cannot reproduce with a minimal setup