patternfly / patternfly-org

Home of patternfly.org
https://www.patternfly.org
MIT License
69 stars 136 forks source link

Bug - SVGs - assets svg imports resulting in ModuleNotFound error #3757

Open jenny-s51 opened 11 months ago

jenny-s51 commented 11 months ago

Describe the problem A clear and concise description of the problem. Which components are affected?

Noted in patternfly/patternfly-react#9140 - moving 1 - 3 to a separate issue as this is out of scope from CodeSandbox and requires more investigation as to why the svgs are not found. @Dominik-Petrik is also running into this issue in his conversion effort for patternfly/patternfly-react#9553 .

Could not find module in path: '@patternfly/react-core/src/demos/assets/pf-logo-small.svg' relative to '/index.tsx'
  1. Icon import paths in Primary Detail Card View demo are not correct and CodeSandbox demo does not render the icons correctly

  2. Masthead fullscreen demo - imgAvatar and pfIcon not rendering correctly in CodeSandbox

  3. Application Launcher - demos that import pfLogoSm not rendering PF icons within dropdown items in CodeSandbox

jenny-s51 commented 9 months ago

Looks like this is still an issue with the SVG imports in CodeSandbox demos