Break storybook when using package which using gatsby Link component #32051
Unanswered
lwyj123
asked this question in
Ideas / Feature Requests
Replies: 1 comment
-
We'd be happy to review a PR adding a comment above the line to say that one should include other packages there, too, if they use Gatsby Link |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
When using
gatsby-theme-i18n
, the storybook will breaks and show errors like below:After reading #5949 and https://github.com/gatsbyjs/gatsby/blob/master/docs/docs/how-to/testing/visual-testing-with-storybook.md
I was found that it's because of the gatsby-theme-i18n using Gatsby's Link component and not be compiled.
in the https://github.com/gatsbyjs/gatsby/blob/master/docs/docs/how-to/testing/visual-testing-with-storybook.md this can be fixed by using
but if some package like
gatsby-theme-i18n
is using the Link component, I have to change the exclude intoand I think those kind of problem should be fixed by someone or provide a better solution.
Steps to reproduce
Expected result
Actual result
Environment
Beta Was this translation helpful? Give feedback.
All reactions