Skip to content

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

Description

@jenny-s51

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


Jira Issue: PF-1965

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status
Not started

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions