RyanClementsHax / storybook-addon-next

A no config Storybook addon that makes Next.js features just work in Storybook
MIT License
219 stars 29 forks source link

Failed to load preset: /dist/preset.js #102

Closed conanbatt closed 2 years ago

conanbatt commented 2 years ago

Describe the bug

I was unable to run storybook in the nextv12 example out of the box. Tried downgrading the next version to the explicit versions in the package.json file but still did not work.

image

Your minimal, reproducible example

1.6.7 repo

Steps to reproduce

  1. git clone project
  2. yarn on main folder
  3. cd examples/nextv12
  4. yarn
  5. yarn storybook

Expected behavior

As a user I expected to run storybook

How often does this bug happen?

No response

Screenshots or Videos

No response

Platform

storybook-addon-next version

1.6.7

Additional context

No response

RyanClementsHax commented 2 years ago

Thanks for opening the issue!

I believe this is failing because you need to build the addon first ("yarn build") at the root of the repo.

I'm sorry I haven't added instructions detailing this yet

github-actions[bot] commented 2 years ago

This issue has been automatically marked stale because it it received no activity for 60 days. If you wish to keep this open, please leave a comment. Thanks.

github-actions[bot] commented 2 years ago

This issue has been automatically closed because it received no activity for 60 days. If you think this was closed by accident, please leave a comment. Thanks.