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 next-image-loader-stub uses the image-size library to get the dimensions of an image to then transform it into the expected shape of image imports in next.js:
Describe the bug
The
next-image-loader-stub
uses the image-size library to get the dimensions of an image to then transform it into the expected shape of image imports in next.js:storybook/code/frameworks/nextjs/src/next-image-loader-stub.ts
Line 21 in 50f3fdb
But the image-size library does not support
avif
files, which leads to errors like this when trying to compile storybook:To Reproduce
I created a new next.js app with a simple reproduction: https://github.com/noranda/storybook-nextjs-avif-bug
System
Additional context
No response
The text was updated successfully, but these errors were encountered: