You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The @storybook/nextjs framework plugin is very fast and easy to setup. However, images don't seem to be working. Not during development, and not in production mode.
If I look at the generated files in the production build, I can see that the image was built, but the end result is corrupted. I can't open the file.
I have reproduced this on two different computers (1 WSL and 1 Mac). The image is build correctly when I replace the nextjs framework plugin with the react-webpack5 framework plugin.
Describe the bug
The @storybook/nextjs framework plugin is very fast and easy to setup. However, images don't seem to be working. Not during development, and not in production mode.
If I look at the generated files in the production build, I can see that the image was built, but the end result is corrupted. I can't open the file.
I have reproduced this on two different computers (1 WSL and 1 Mac). The image is build correctly when I replace the nextjs framework plugin with the react-webpack5 framework plugin.
I have pushed a demo repo here: https://github.com/Popup-IO/test-next-sb
To Reproduce
stories
folder, and import it within a storynpm run build-storybook
storybook-static/static/media/my-image.[hash].jpg
Or, use the demo repo and run step 4 & 5.
System
Additional context
I have also posted this on the Discord with no response.
The text was updated successfully, but these errors were encountered: