Skip to content
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

[Bug]: Investigate Next.js v15 features #29421

Open
5 tasks
valentinpalkovic opened this issue Oct 21, 2024 · 6 comments
Open
5 tasks

[Bug]: Investigate Next.js v15 features #29421

valentinpalkovic opened this issue Oct 21, 2024 · 6 comments

Comments

@valentinpalkovic
Copy link
Contributor

valentinpalkovic commented Oct 21, 2024

Describe the bug

Next.js 15 is now stable.

Investigate the following topics:

@terrymun
Copy link

@valentinpalkovic Thanks for looking into this! I have personally been experimenting with next@15 with storybook (using webpack under the hood), and the only major issue I'm running into is the invalid paths that @storybook/nextjs tries to use when accessing server-related internals on next.js.

If this sounds familiar to you, that's because I've opened a related issue #29380 some days ago... but I've had time to fully try to debug the issue today and finally found the root cause + create a reproducible example for you to work with.

Apologies in advance if I end up hijacking/derailing the purpose of this ticket, feel free to remove this comment so the issue stays on track 👍

@valentinpalkovic
Copy link
Contributor Author

Hi @terrymun

Thank you very much for providing this detailed information! We will take a look as soon as we are able to work on this issue.

@terrymun
Copy link

@valentinpalkovic Really appreciate your work with keeping Storybook updated with the latest release of next :) thanks for the update! If you need any further examples or need us to test something out for you, feel free to reach out.

@DrewLandgraveCbsi
Copy link

For the Next15 release. It looks like the next/dist/client/components/headers file was moved to next/headers

@tiavina-mika
Copy link

I also encountered this issue with Next.js 15 and Storybook/Next.js. I hope it gets resolved quickly.

Image

@bmuenzenmeyer
Copy link

bmuenzenmeyer commented Nov 4, 2024

I tried created a minimal reproduction to start exploring this compatibility, but until official ^15.0.0 support lands, resolution errors prevent a clean install. Of course we could override, but I'm using this as a clear indicator to wait until maintainers can help.

cc nodejs/nodejs.org#7155

npx storybook@latest init log
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/next
npm ERR!   next@"15.0.2" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer next@"^13.5.0 || ^14.0.0" from @storybook/[email protected]
npm ERR! node_modules/@storybook/nextjs
npm ERR!   dev @storybook/nextjs@"^8.4.1" from the root project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants