Skip to content

Review @primer/octicons-react usage, update/replace dependency #6878

Closed

Description

@fregante

Our @primer/octicons-react package cannot be updated:

There were a couple of attempts at fixing this:

Probably jsx-dom is the best transition we can do right now, but also it's probably not working with v19.

So I think the easiest way forward would be to:

  1. import the raw SVG
  2. have webpack turn it into JSX-compatible imports ("svgr")

This should be reasonably easy to implement and likely the most stable and lightweight solution (octicons-react has more code than we need, at this point)

Activity

  1. added
    meta
    on Sep 4, 2023
  2. fregante commented on Sep 4, 2023

    @fregante
    MemberAuthor

    Extracted from #6000 (comment)

  3. kidonng commented on Nov 30, 2023

    @kidonng
    Member
  4. fregante commented on Nov 30, 2023

    @fregante
    MemberAuthor

    Yeah let's restore SVGR soon so we'll skip all the React drama. I think the npm package still includes the SVG:

    https://github.com/fregante/github-issue-link-status/blob/main/source/icons.js

    (That file is handled by parcel so the syntax isn't the same)

  5. self-assigned this
    on Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

acceptedmetaunder discussion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions