gatsby: Gatsby's documentation about visual testing with storybook is out of date / not working.

Preliminary Checks

Summary

Storybook has had an update and the documentation linked to configuring storybook no longer works!

Also Gatsby’s Link component doesnt play nice with storybook any longer. This is how i came across the issue with this part of the documentation.

Im not sure exactly on how to resolve these issues, but thought it would be worth reporting incase other people have any issues setting it up in the mean time!

Steps to Resolve this Issue

  1. download https://github.com/darylthornhill/test-gatsby-storybook-error npm run storybook to start storybook and see the errors with Gatsby Link.
  2. After trying that, copy and paste the example code pieces for the main.js and the preview.js into the respective files and run npm run storybook and see further errors.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 6
  • Comments: 26 (3 by maintainers)

Most upvoted comments

Still an issue

will be better if a Video tutorial is made.