storybookjs/storybook

[Bug]: NextJS automigration misses static paths

Aberta

#21.492 aberto em 9 de mar. de 2023

 (0 comentário) (1 reação) (0 responsável)TypeScript (10.058 forks)batch import
automigrationsbughas workaroundhelp wantedsev:S3

Métricas do repositório

Stars
 (89.909 estrelas)
Métricas de merge de PR
 (Mesclagem média 7d 22h) (184 fundiu PRs em 30d)

Description

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

Guia do colaborador