Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview doesn't load svg components correctly still #6714

Closed
iambumblehead opened this issue May 3, 2019 · 1 comment
Closed

Preview doesn't load svg components correctly still #6714

iambumblehead opened this issue May 3, 2019 · 1 comment

Comments

@iambumblehead
Copy link

iambumblehead commented May 3, 2019

Describe the bug

storybook/react 5.0.11 exhibits the exact issue described in this ticket closed a few months ago.

this imported svg is not loaded correctly by storybook even when using a custom webpack config

import Pause from 'assets/web/svg/btn-pause.svg';

this hacky import bypassing storybook's loader behaviour does appear in storybook correctly

import Pause from '-!react-svg-loader!assets/web/svg/btn-pause.svg';

To Reproduce
Steps to reproduce the behavior:
same steps as seen in previous ticket:

Expected behavior
The component is rendered correctly with the svg file.

Code snippets
same code snippets as seen in previous ticket:

System:

  • OS: MacOS
  • Device: Macbook Pro 2018
  • Browser: firefox
  • Framework: react
  • Version: 5.0.11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants