storybookjs/storybook

[Bug]: NextJS automigration misses static paths

Ouverte

#21 492 ouverte le 9 mars 2023

 (0 commentaire) (1 réaction) (0 personne assignée)TypeScript (10 058 forks)batch import
automigrationsbughas workaroundhelp wantedsev:S3

Métriques du dépôt

Stars
 (89 909 étoiles)
Métriques de merge PR
 (Merge moyen 7j 22h) (184 PRs mergées en 30 j)

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

Guide contributeur