Storybook Issues with v2
- Dominant language
- TypeScript
- Stars
- 10.8k
- Forks
- 294
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 21
Description
## Context
What's your version of `nuqs`?
```
^2.1.1
```
What framework are you using?
- ✅ Next.js (app router)
- ✅ Next.js (pages router)
Which version of your framework are you using?
```
^14.2.9 and ^15.0.3 tested
```
## Description
If i try to use nuqs in Storybook i get following errors:
`import { NuqsAdapter } from "nuqs/adapters/next";`

`import { NuqsAdapter } from "nuqs/adapters/next/pages";`

I have not specified app router. If i use `import { NuqsAdapter } from "nuqs/adapters/react";` everything works fine.
I use the adapter inside a decorator in the preview.js file.
```
const preview = {
decorators: [
(Story) => (
),
],
};
```
My main.js includes
```
framework: {
name: "@storybook/nextjs",
options: {},
},
```
## Reproduction
Codesandbox: https://codesandbox.io/p/github/BhagirathiRohidas/storybook-nextjs/csb-w7fl7v/draft/quirky-andras
`npm run storybook`
Contributor guide
Assessment
This issue has not been assessed yet.