Closed eramdam closed 6 years ago
Thanks for the report. I'm taking a look now.
I managed to reproduce the issue. The issue appears to be present when this loader is disabled.
It appears to be an issue with the Storybook addon itself. Can you confirm?
I don't. I removed the withInfo
call from the stories files entirely and I can still see my text being removed with the loader is present in the webpack config :/
I uploaded the example folder below in case that helps example.zip
Thank you for the reproduction, I see what you mean. I'm having a look now.
@eramdam Can you try version 2.0.2 ? I believe this is resolved now.
@strothj Seems like it! Thanks for the quick fix! :)
If one of the components importer has text children, those get removed when imported into Storybook.
See the screenshots below
Removed children
Children being kept
You can see that a workaround is to put whatever text into a variable and then pass that variable as the child of the elements but that's not very ideal obviously 😅
Interestingly, I managed to reproduce the same issue in the example configuration available in the repo by applying this diff