storybook-addon-next
storybook-addon-next copied to clipboard
Does not work with next/future/image
Describe the bug
Storybook gives the error:
The "next/future/image" component is experimental and may be subject to breaking changes. To enable this experiment, please include
experimental: { images: { allowFutureImage: true } } in your next.config.js file.
Your minimal, reproducible example
None
Steps to reproduce
- Create component with
import NextImage from 'next/future/image'
- Add this component to storybook
- Run storybook but it just fails with the above error
Expected behavior
Storybook start normally
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
- Windows
storybook-addon-next version
v 1.6.7
Additional context
No response
Same here - nextJS version 12.2.4 - next.config path setup correctly:
{
name: 'storybook-addon-next',
options: {
nextConfigPath: path.resolve(__dirname, '../next.config.js')
}
}
Duplicate of https://github.com/RyanClementsHax/storybook-addon-next/issues/99 issue
Closing in favor of #99