Skip to content

@next/plugin-storybook does not work with experimental modern: true config option #19200

@stefanprobst

Description

@stefanprobst

Bug report

when using the experimental: { modern: true } config option in next.config.js, and configuring storybook with @next/plugin-storybook, starting storybook fails with: "NextEsmPlugin: TypeError: Cannot read property 'chunks' of undefined".

Describe the bug

see above

To Reproduce

  1. Clone repro at https://github.com/stefanprobst/next-storybook-issue
  2. yarn && yarn storybook
  3. see error

Expected behavior

@next/plugin-storybook should work with modern: true config.

Screenshots

next-storybook

System information

  • OS: ubuntu 20.04
  • Version of Next.js: 10.0.1
  • Version of Node.js: 14.15.0

Additional context

i realize that both modern: true and @next/plugin-storybook are marked as experimental, so feel free to close or move to discussions.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions