storybookjs/storybook

[Bug]: NextJS automigration misses static paths

Open

#21,492 建立於 2023年3月9日

在 GitHub 查看
 (0 留言) (1 反應) (0 負責人)TypeScript (89,909 star) (10,058 fork)batch import
automigrationsbughas workaroundhelp wantedsev:S3

描述

Describe the bug

Feedback from @thafryer on upgrading Chromatic's storybook:

When I switched to the NextJS framework, importing assets into stories  stopped working. This was working when I was using react-webpack5 as the framework. i switched to pointing a string path to the static directory, which worked.

To Reproduce

No response

System

No response

Additional context

No response

貢獻者指南

[Bug]: NextJS automigration misses static paths · storybookjs/storybook#21492 | Good First Issue