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]: Storybook incompatible with Next.js 13.4.8 #23287

Closed
wottpal opened this issue Jul 3, 2023 · 10 comments · Fixed by #23296
Closed

[Bug]: Storybook incompatible with Next.js 13.4.8 #23287

wottpal opened this issue Jul 3, 2023 · 10 comments · Fixed by #23296

Comments

@wottpal
Copy link

wottpal commented Jul 3, 2023

Describe the bug

Since upgrading to the latest nextjs (13.4.8), storybook throws the following error (but it starts correctly). Double-tested downgrading again to 13.4.7 where everything works as expected.

Cannot redefine property: default
Screenshot 2023-07-03 at 21 35 28

To Reproduce

No response

System

No response

Additional context

No response

@marviobezerra
Copy link

+1

@lloydrichards
Copy link

Also upgraded both next and storybook and ran into the same error. Tried different versions of storybook, but same error. only solution for now was to downgrade next to 13.4.7 and wait for now

@ovflowd
Copy link

ovflowd commented Jul 4, 2023

+1 it seems that indeed Storybook is broken with Next.js 13.4.8, I wonder what exactly is going on here.

@elliotwestlake
Copy link

Also having the same issue with 13.4.8

@nima-ca
Copy link

nima-ca commented Jul 4, 2023

Same issue here with Next.js version 13.4.8

@yungrari
Copy link

yungrari commented Jul 4, 2023

Same

@jeremytenjo
Copy link

jeremytenjo commented Jul 4, 2023

Issue fixed when updating to "@storybook/nextjs": "7.1.0-alpha.44"

Thanks!

@valentinpalkovic
Copy link
Contributor

The bugfix will also get patched back to version 7.0.x soon!

@shilman shilman closed this as completed Jul 4, 2023
casaub0n added a commit to casaub0n/cfstack that referenced this issue Jul 5, 2023
"TypeError: Cannot redefine property: default" update storybook version,
followed by
storybookjs/storybook#23287 (comment)
for now
@shilman
Copy link
Member

shilman commented Jul 5, 2023

@Atralbus
Copy link

If you are still experiencing this issue with the new versions, it may be related to the change you made in preview.ts file to unoptimize the image: #23561

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

Successfully merging a pull request may close this issue.