This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
Image doesn't support the loader
prop
#93
Labels
duplicate
This issue or pull request already exists
Describe the bug
I'm not sure if this is related to #67
I am building a site which loads images from various different sources. Next's
next/image
component allows aloader
prop which allows me to pass in a function which generates URLs for a given image at various different widths.I have different loader functions which produce different aspect ratios, and that sort of thing.
It seems that when run via
storybook-addon-next
, the loader prop is ignored or overruled, and I get the plainsrc
coming through, which is not an actual loadable URL. This would also be the case if using some built-in loaders --cloudinary
for sure and possibly others.Your minimal, reproducible example
Sorry, none
Steps to reproduce
This loader is obviously pretend.
Expected behavior
This ought to come out with a kitten image, but it'll result in a broken image because storybook will render an image with "my-untranslated-src" as the source, and there is no such image.
How often does this bug happen?
No response
Screenshots or Videos
No response
Platform
n/a
storybook-addon-next version
v1.6.6
Additional context
No response
The text was updated successfully, but these errors were encountered: