storybook-addon-next icon indicating copy to clipboard operation
storybook-addon-next copied to clipboard

Does not work with next/future/image

Open webcredo opened this issue 2 years ago • 2 comments

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

  1. Create component with import NextImage from 'next/future/image'
  2. Add this component to storybook
  3. 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

webcredo avatar Aug 05 '22 23:08 webcredo

Same here - nextJS version 12.2.4 - next.config path setup correctly:

  {
      name: 'storybook-addon-next',
      options: {
        nextConfigPath: path.resolve(__dirname, '../next.config.js')
      }
    }

DhiaPhntm avatar Aug 09 '22 11:08 DhiaPhntm

Duplicate of https://github.com/RyanClementsHax/storybook-addon-next/issues/99 issue

dawidk92 avatar Aug 23 '22 09:08 dawidk92

Closing in favor of #99

RyanClementsHax avatar Sep 22 '22 13:09 RyanClementsHax