storybookjs/storybook

[Bug]: NextJS automigration misses static paths

開放

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

 (0 則留言) (1 個反應) (0 位負責人)TypeScript (10,058 個分叉)batch import
automigrationsbughas workaroundhelp wantedsev:S3

倉庫指標

星標
 (89,909 顆星)
PR 合併指標
 (平均合併 7天 22小時) (30 天內合併 184 個 PR)

描述

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

貢獻者指南