Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Storybook renders question mark for SVG image #16405

Closed
hhimanshu opened this issue Oct 19, 2021 · 0 comments
Closed

Storybook renders question mark for SVG image #16405

hhimanshu opened this issue Oct 19, 2021 · 0 comments

Comments

@hhimanshu
Copy link

Describe the bug
I am setting up a Gatsby project that renders SVG image. When I set up the storybook, I see question mark instead of the SVG I am looking for.
This is described in the image (left is image from the gatsby app, right is from storybook)

Screen Shot 2021-10-19 at 8 44 19 AM

To Reproduce

  • Clone https://github.com/hhimanshu/gatsby-svg-import-example
  • Run yarn install
  • Run yarn start to see the svg icon in the app
  • Run yarn storybook to see question mark in the story

System
Please paste the results of npx sb@next info here.

Environment Info:

  System:
    OS: macOS 10.15.4
    CPU: (8) x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
  Binaries:
    Node: 14.17.4 - ~/.nvm/versions/node/v14.17.4/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 7.20.3 - ~/.nvm/versions/node/v14.17.4/bin/npm
  Browsers:
    Safari: 13.1
  npmPackages:
    @storybook/addon-actions: ^6.3.12 => 6.3.12
    @storybook/addon-essentials: ^6.3.12 => 6.3.12
    @storybook/addon-links: ^6.3.12 => 6.3.12
    @storybook/react: ^6.3.12 => 6.3.12

Additional context

  • None
@storybookjs storybookjs locked and limited conversation to collaborators Oct 19, 2021
@shilman shilman closed this as completed Oct 19, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

2 participants